summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornatsukium <tomoya.otabi@gmail.com>2023-11-12 15:37:16 +0900
committernatsukium <tomoya.otabi@gmail.com>2023-11-12 15:37:16 +0900
commitb9311beee860991393e99650eeadcf0a46ee5826 (patch)
tree100833ba6b608738c9760648af938e76948cb73d
parent42e586d75c7a96f58085ed5fb646df70862af1e6 (diff)
python311Packages.py-stringmatching: adopt pypa build and replace nose with pytestChckHook
-rw-r--r--pkgs/development/python-modules/py-stringmatching/default.nix17
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"
];