uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
59
pkgs/development/python-modules/pygls/default.nix
Normal file
59
pkgs/development/python-modules/pygls/default.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, isPy3k
|
||||
, fetchFromGitHub
|
||||
, setuptools-scm
|
||||
, pydantic
|
||||
, toml
|
||||
, typeguard
|
||||
, mock
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pygls";
|
||||
version = "0.11.3";
|
||||
format = "setuptools";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openlawlibrary";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-/nmDaA67XzrrmfwlBm5syTS4hn25m30Zb3gvOdL+bR8=";
|
||||
};
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
nativeBuildInputs = [ setuptools-scm ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pydantic
|
||||
toml
|
||||
typeguard
|
||||
];
|
||||
# We don't know why an early version of pydantic is required, see:
|
||||
# https://github.com/openlawlibrary/pygls/issues/221
|
||||
preBuild = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "pydantic>=1.7,<1.9" "pydantic"
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# Fixes hanging tests on Darwin
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
pythonImportsCheck = [ "pygls" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pythonic generic implementation of the Language Server Protocol";
|
||||
homepage = "https://github.com/openlawlibrary/pygls";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ kira-bruneau ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue