diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2023-11-13 12:21:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 12:21:24 +0100 |
commit | e6480813e1a7724fb1008513533dc9c88e8392a3 (patch) | |
tree | 12f12ffe1ea9fc767c97225173f153c4f0013916 /pkgs/development | |
parent | 115ddb0662ddffc011c6eb1bd86046fef2086300 (diff) | |
parent | b9311beee860991393e99650eeadcf0a46ee5826 (diff) |
Merge pull request #266983 from natsukium/py-stringmatching
python311Packages.py-stringmatching: rename from py_stringmatching
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/py-stringmatching/default.nix (renamed from 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 8c49de1e5287c..9a1af7c13cf71 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" ]; |