tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python311Packages.blis: 0.7.9 -> 0.7.11
Nick Cao
2 years ago
a1f6a0a4
87c6a971
+20
-10
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
blis
default.nix
+20
-10
pkgs/development/python-modules/blis/default.nix
reviewed
···
1
1
{ lib
2
2
, buildPythonPackage
3
3
-
, fetchPypi
3
3
+
, fetchFromGitHub
4
4
+
, setuptools
4
5
, cython
5
6
, hypothesis
6
7
, numpy
7
7
-
, pytest
8
8
+
, pytestCheckHook
8
9
, pythonOlder
9
10
}:
10
11
11
12
buildPythonPackage rec {
12
13
pname = "blis";
13
13
-
version = "0.7.9";
14
14
-
format = "setuptools";
14
14
+
version = "0.7.11";
15
15
+
pyproject = true;
15
16
16
17
disabled = pythonOlder "3.7";
17
18
18
18
-
src = fetchPypi {
19
19
-
inherit pname version;
20
20
-
hash = "sha256-Ke9MJQB3hakP/C8Ks9O9O3XNLXhWqaSCt9DayNURoJ0=";
19
19
+
src = fetchFromGitHub {
20
20
+
owner = "explosion";
21
21
+
repo = "cython-blis";
22
22
+
rev = "refs/tags/v${version}";
23
23
+
hash = "sha256-p8pzGZc5OiiGTvXULDgzsBC3jIhovTKUq3RtPnQ/+to=";
21
24
};
22
25
23
26
postPatch = ''
24
27
# See https://github.com/numpy/numpy/issues/21079
28
28
+
# has no functional difference as the name is only used in log output
25
29
substituteInPlace blis/benchmark.py \
26
26
-
--replace "numpy.__config__.blas_ilp64_opt_info" "numpy.__config__.blas_opt_info"
30
30
+
--replace 'numpy.__config__.blas_ilp64_opt_info["libraries"]' '["dummy"]'
31
31
+
'';
32
32
+
33
33
+
preCheck = ''
34
34
+
# remove src module, so tests use the installed module instead
35
35
+
rm -rf ./blis
27
36
'';
28
37
29
38
nativeBuildInputs = [
39
39
+
setuptools
30
40
cython
31
41
];
32
42
···
36
46
37
47
nativeCheckInputs = [
38
48
hypothesis
39
39
-
pytest
49
49
+
pytestCheckHook
40
50
];
41
51
42
52
pythonImportsCheck = [
···
53
63
description = "BLAS-like linear algebra library";
54
64
homepage = "https://github.com/explosion/cython-blis";
55
65
license = licenses.bsd3;
56
56
-
maintainers = with maintainers; [ ];
66
66
+
maintainers = with maintainers; [ nickcao ];
57
67
};
58
68
}