diff options
Diffstat (limited to 'pkgs/development/python-modules/aiocontextvars/default.nix')
-rw-r--r-- | pkgs/development/python-modules/aiocontextvars/default.nix | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/aiocontextvars/default.nix b/pkgs/development/python-modules/aiocontextvars/default.nix index 24f6f1b2e4888..47f7108309e69 100644 --- a/pkgs/development/python-modules/aiocontextvars/default.nix +++ b/pkgs/development/python-modules/aiocontextvars/default.nix @@ -1,29 +1,34 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pytest-asyncio -, isPy27 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + pytest-asyncio, + isPy27, }: buildPythonPackage rec { pname = "aiocontextvars"; version = "0.2.2"; - format = "setuptools"; + pyproject = true; + disabled = isPy27; src = fetchFromGitHub { owner = "fantix"; - repo = pname; + repo = "aiocontextvars"; rev = "v${version}"; - sha256 = "0a2gmrm9csiknc8n3si67sgzffkydplh9d7ga1k87ygk2aj22mmk"; + hash = "sha256-s1YhpBLz+YNmUO+0BOltfjr3nz4m6mERszNqlmquTyg="; }; postPatch = '' substituteInPlace setup.py \ - --replace "'pytest-runner'," "" + --replace-fail "'pytest-runner'," "" ''; + build-system = [ setuptools ]; + nativeCheckInputs = [ pytestCheckHook pytest-asyncio |