mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 01:16:57 +01:00
python3Packages.pygls: 0.12 → 0.12.1
This commit is contained in:
parent
8c7576622a
commit
0e4b730d63
1 changed files with 6 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, isPy3k
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, setuptools-scm
|
||||
, pydantic
|
||||
|
@ -13,15 +13,16 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "pygls";
|
||||
version = "0.12";
|
||||
version = "0.12.1";
|
||||
format = "setuptools";
|
||||
disabled = !isPy3k;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openlawlibrary";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-PEfGxOUsiZ5WLmoQkOP2RRWJlIKi+42lOu55C3C+k8A=";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "sha256-L2KTNiI+I+r2fF88B1NSunowokrDzGCw3PXbxekg/oE=";
|
||||
};
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
@ -32,12 +33,6 @@ buildPythonPackage rec {
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue