Skip to content

Commit 840a221

Browse files
committed
python3Packages.py-stringmatching: fixes
1 parent 9a7caec commit 840a221

File tree

1 file changed

+23
-13
lines changed
  • pkgs/development/python-modules/py-stringmatching

1 file changed

+23
-13
lines changed

pkgs/development/python-modules/py-stringmatching/default.nix

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,40 @@
11
{
22
lib,
33
buildPythonPackage,
4-
fetchPypi,
4+
fetchFromGitHub,
5+
6+
# build-system
7+
cython,
58
setuptools,
6-
pytestCheckHook,
7-
numpy,
8-
pythonOlder,
9+
10+
# dependencies
11+
numpy_1,
912
six,
13+
14+
# tests
15+
pytestCheckHook,
1016
}:
1117

1218
buildPythonPackage rec {
1319
pname = "py-stringmatching";
1420
version = "0.4.6";
15-
pyproject = true;
16-
17-
disabled = pythonOlder "3.7";
1821

19-
src = fetchPypi {
20-
inherit pname version;
21-
hash = "sha256-XdHLHwT/sgHM+uQ4lxw9c+AcAdJjL6OVgfwtJkYLoBs=";
22+
src = fetchFromGitHub {
23+
owner = "anhaidgroup";
24+
repo = "py_stringmatching";
25+
tag = "v${version}";
26+
hash = "sha256-gQiIIN0PeeM81ZHsognPFierf9ZXasq/JqxsYZmLAnU=";
2227
};
2328

24-
nativeBuildInputs = [ setuptools ];
29+
pyproject = true;
30+
31+
build-system = [
32+
setuptools
33+
cython
34+
];
2535

26-
propagatedBuildInputs = [
27-
numpy
36+
dependencies = [
37+
numpy_1
2838
six
2939
];
3040

0 commit comments

Comments
 (0)