python311Packages.py-stringmatching: adopt pypa build and replace nose with pytestChckHook

This commit is contained in:
natsukium
2023-11-12 15:37:16 +09:00
parent 42e586d75c
commit b9311beee8
@@ -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"
];