Unverified Commit b9311bee authored by natsukium's avatar natsukium
Browse files

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

parent 42e586d7
Loading
Loading
Loading
Loading
+13 −4
Original line number Diff line number Diff line
{ 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"
  ];