diff options
Diffstat (limited to 'pkgs/development/python-modules/flexcache/default.nix')
-rw-r--r-- | pkgs/development/python-modules/flexcache/default.nix | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/flexcache/default.nix b/pkgs/development/python-modules/flexcache/default.nix index 1442940ca199f..a15801505ca9a 100644 --- a/pkgs/development/python-modules/flexcache/default.nix +++ b/pkgs/development/python-modules/flexcache/default.nix @@ -2,9 +2,19 @@ lib, buildPythonPackage, fetchFromGitHub, + + # build-system + setuptools, setuptools-scm, + wheel, + + # dependencies typing-extensions, + + # checks pytestCheckHook, + pytest-mpl, + pytest-subtests, }: buildPythonPackage rec { @@ -15,23 +25,31 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "hgrecco"; repo = "flexcache"; - rev = "refs/tags/${version}"; + rev = version; hash = "sha256-MAbTe7NxzfRPzo/Wnb5SnPJvJWf6zVeYsaw/g9OJYSE="; }; - build-system = [ setuptools-scm ]; + build-system = [ + setuptools + setuptools-scm + wheel + ]; dependencies = [ typing-extensions ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-mpl + pytest-subtests + ]; pythonImportsCheck = [ "flexcache" ]; - meta = { + meta = with lib; { description = "An robust and extensible package to cache on disk the result of expensive calculations"; homepage = "https://github.com/hgrecco/flexcache"; changelog = "https://github.com/hgrecco/flexcache/blob/${src.rev}/CHANGES"; - license = lib.licenses.bsd3; - maintainers = with lib.maintainers; [ doronbehar ]; + license = licenses.bsd3; + maintainers = with maintainers; [ doronbehar ]; }; } |