diff options
author | natsukium <tomoya.otabi@gmail.com> | 2023-11-12 15:37:16 +0900 |
---|---|---|
committer | natsukium <tomoya.otabi@gmail.com> | 2023-11-12 15:37:16 +0900 |
commit | b9311beee860991393e99650eeadcf0a46ee5826 (patch) | |
tree | 100833ba6b608738c9760648af938e76948cb73d | |
parent | 42e586d75c7a96f58085ed5fb646df70862af1e6 (diff) |
python311Packages.py-stringmatching: adopt pypa build and replace nose with pytestChckHook
-rw-r--r-- | pkgs/development/python-modules/py-stringmatching/default.nix | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/py-stringmatching/default.nix b/pkgs/development/python-modules/py-stringmatching/default.nix index 8c49de1e5287..9a1af7c13cf7 100644 --- a/pkgs/development/python-modules/py-stringmatching/default.nix +++ b/pkgs/development/python-modules/py-stringmatching/default.nix @@ -1,7 +1,8 @@ { lib , buildPythonPackage , fetchPypi -, nose +, setuptools +, pytestCheckHook , numpy , pythonOlder , six @@ -10,25 +11,33 @@ buildPythonPackage rec { pname = "py-stringmatching"; version = "0.4.3"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; src = fetchPypi { pname = "py_stringmatching"; inherit version; - sha256 = "sha256-khubsWOzEN80HDOCORMgT3sMqfajGfW0UUCDAL03je4="; + hash = "sha256-khubsWOzEN80HDOCORMgT3sMqfajGfW0UUCDAL03je4="; }; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ numpy six ]; nativeCheckInputs = [ - nose + pytestCheckHook ]; + preCheck = '' + cd $out + ''; + pythonImportsCheck = [ "py_stringmatching" ]; |