Skip to content

Commit bfb0dc4

Browse files
authored
python312Packages.numcodecs: 0.13.0 -> 0.13.1 (#352309)
2 parents 8399f3f + 6f9d95f commit bfb0dc4

File tree

3 files changed

+43
-42
lines changed

3 files changed

+43
-42
lines changed

pkgs/applications/graphics/hydrus/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515

1616
python3Packages.buildPythonPackage rec {
1717
pname = "hydrus";
18-
version = "591";
18+
version = "595";
1919
format = "other";
2020

2121
src = fetchFromGitHub {
2222
owner = "hydrusnetwork";
2323
repo = "hydrus";
2424
rev = "refs/tags/v${version}";
25-
hash = "sha256-JhCnSNmCOEJdM5aEPpYWLpKy/EQ9BoN1A/aUAaILWtQ=";
25+
hash = "sha256-bIUtFpAMCIeLAyGXi4Rgn8FmijN5NwbkC31JoVyjNdg=";
2626
};
2727

2828
nativeBuildInputs = [

pkgs/development/python-modules/numcodecs/default.nix

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,35 @@
22
lib,
33
stdenv,
44
buildPythonPackage,
5-
fetchpatch,
65
fetchPypi,
6+
python,
7+
pythonOlder,
8+
9+
# build-system
710
setuptools,
811
setuptools-scm,
912
cython,
13+
py-cpuinfo,
14+
15+
# dependencies
1016
numpy,
17+
18+
# tests
1119
msgpack,
12-
py-cpuinfo,
1320
pytestCheckHook,
14-
python,
15-
pythonOlder,
21+
importlib-metadata,
1622
}:
1723

1824
buildPythonPackage rec {
1925
pname = "numcodecs";
20-
version = "0.13.0";
26+
version = "0.13.1";
2127
pyproject = true;
2228

2329
disabled = pythonOlder "3.8";
2430

2531
src = fetchPypi {
2632
inherit pname version;
27-
hash = "sha256-uk+scDbqWgeMev4dTf/rloUIDULxnJwWsS2thmcDqi4=";
33+
hash = "sha256-o883iB3wiY86nA1Ed9+IEz/oUYW//le6MbzC+iB3Cbw=";
2834
};
2935

3036
build-system = [
@@ -41,37 +47,23 @@ buildPythonPackage rec {
4147
# zfpy = [ zfpy ];
4248
};
4349

44-
preBuild =
45-
if (stdenv.hostPlatform.isx86 && !stdenv.hostPlatform.avx2Support) then
46-
''
47-
export DISABLE_NUMCODECS_AVX2=
48-
''
49-
else
50-
null;
50+
preBuild = lib.optionalString (stdenv.hostPlatform.isx86 && !stdenv.hostPlatform.avx2Support) ''
51+
export DISABLE_NUMCODECS_AVX2=1
52+
'';
5153

5254
nativeCheckInputs = [
5355
pytestCheckHook
5456
msgpack
57+
importlib-metadata
5558
];
5659

60+
# https://github.com/NixOS/nixpkgs/issues/255262
5761
pytestFlagsArray = [ "$out/${python.sitePackages}/numcodecs" ];
5862

59-
disabledTests = [
60-
"test_backwards_compatibility"
61-
62-
"test_encode_decode"
63-
"test_legacy_codec_broken"
64-
"test_bytes"
65-
66-
# ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (3,) + inhomogeneous part.
67-
# with numpy 1.24
68-
"test_non_numpy_inputs"
69-
];
70-
71-
meta = with lib; {
63+
meta = {
7264
homepage = "https://github.com/zarr-developers/numcodecs";
73-
license = licenses.mit;
65+
license = lib.licenses.mit;
7466
description = "Buffer compression and transformation codecs for use in data storage and communication applications";
75-
maintainers = [ ];
67+
maintainers = with lib.maintainers; [ doronbehar ];
7668
};
7769
}
Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
{
22
lib,
3-
asciitree,
43
buildPythonPackage,
5-
fasteners,
64
fetchPypi,
7-
numcodecs,
8-
msgpack,
9-
numpy,
10-
pytestCheckHook,
115
pythonOlder,
6+
7+
# build-system
128
setuptools-scm,
9+
10+
# dependencies
11+
asciitree,
12+
numpy,
13+
fasteners,
14+
numcodecs,
15+
16+
# tests
17+
pytestCheckHook,
1318
}:
1419

1520
buildPythonPackage rec {
@@ -24,24 +29,28 @@ buildPythonPackage rec {
2429
hash = "sha256-JYDYy23YRiF3GhDTHE13fcqKJ3BqGomyn0LS034t9c4=";
2530
};
2631

27-
nativeBuildInputs = [ setuptools-scm ];
32+
build-system = [
33+
setuptools-scm
34+
];
2835

29-
propagatedBuildInputs = [
36+
dependencies = [
3037
asciitree
3138
numpy
3239
fasteners
3340
numcodecs
3441
] ++ numcodecs.optional-dependencies.msgpack;
3542

36-
nativeCheckInputs = [ pytestCheckHook ];
43+
nativeCheckInputs = [
44+
pytestCheckHook
45+
];
3746

3847
pythonImportsCheck = [ "zarr" ];
3948

40-
meta = with lib; {
49+
meta = {
4150
description = "Implementation of chunked, compressed, N-dimensional arrays for Python";
4251
homepage = "https://github.com/zarr-developers/zarr";
4352
changelog = "https://github.com/zarr-developers/zarr-python/releases/tag/v${version}";
44-
license = licenses.mit;
45-
maintainers = [ ];
53+
license = lib.licenses.mit;
54+
maintainers = with lib.maintainers; [ doronbehar ];
4655
};
4756
}

0 commit comments

Comments
 (0)