From d72352e04a1e27a90d17b0fee9ff0b4d09760e61 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 22 Oct 2022 12:18:33 +0200 Subject: [PATCH] python310Packages.cdcs: 0.1.8 -> 0.1.9 - enable tests --- .../python-modules/cdcs/default.nix | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/cdcs/default.nix b/pkgs/development/python-modules/cdcs/default.nix index 748d0ff623fd..2c608c06251e 100644 --- a/pkgs/development/python-modules/cdcs/default.nix +++ b/pkgs/development/python-modules/cdcs/default.nix @@ -1,16 +1,20 @@ { lib , buildPythonPackage , fetchFromGitHub +, ipython , numpy , pandas , pytestCheckHook , pythonOlder , requests +, responses +, setuptools +, tqdm }: buildPythonPackage rec { - version = "0.1.8"; pname = "cdcs"; + version = "0.1.9"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -18,18 +22,27 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "usnistgov"; repo = "pycdcs"; - rev = "v${version}"; - sha256 = "sha256-s+COE7hus1J5I8PTdagl7KEK5QFoidjQ3ee46kOWmkE="; + # https://github.com/usnistgov/pycdcs/issues/1 + rev = "0a770b752301c27e227ca40a4752f305b55dee20"; + sha256 = "sha256-AUrVEFea4VtBJXWWgECqdBFCqKuHWAlh07Dljp+HBa0="; }; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ + ipython numpy pandas requests + tqdm ]; - # Project has no tests - doCheck = false; + checkInputs = [ + pytestCheckHook + responses + ]; pythonImportsCheck = [ "cdcs"