Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pythonPackages.zarr: init at 2.3.2 #65027

Merged
merged 2 commits into from
Jul 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
45 changes: 45 additions & 0 deletions pkgs/development/python-modules/numcodecs/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools_scm
, cython
, numpy
, msgpack
, pytest
, python
}:

buildPythonPackage rec {
pname = "numcodecs";
version = "0.6.3";

src = fetchPypi {
inherit pname version;
sha256 = "086qwlyi01rpgyyyy8bmhh9i7hpksyz33ldci3wdwmhiblyl362y";
};

nativeBuildInputs = [
setuptools_scm
cython
];

propagatedBuildInputs = [
numpy
msgpack
];

checkInputs = [
pytest
];

checkPhase = ''
pytest $out/${python.sitePackages}/numcodecs -k "not test_backwards_compatibility"
'';

meta = with lib;{
homepage = https://github.com/alimanfoo/numcodecs;
license = licenses.mit;
description = "Buffer compression and transformation codecs for use in data storage and communication applications";
maintainers = [ maintainers.costrouc ];
};
}
46 changes: 46 additions & 0 deletions pkgs/development/python-modules/zarr/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools_scm
, asciitree
, numpy
, fasteners
, numcodecs
, pytest
}:

buildPythonPackage rec {
pname = "zarr";
version = "2.3.2";

src = fetchPypi {
inherit pname version;
sha256 = "c62d0158fb287151c978904935a177b3d2d318dea3057cfbeac8541915dfa105";
};

nativeBuildInputs = [
setuptools_scm
];

propagatedBuildInputs = [
asciitree
numpy
fasteners
numcodecs
];

checkInputs = [
pytest
];

costrouc marked this conversation as resolved.
Show resolved Hide resolved
checkPhase = ''
pytest
'';

meta = with lib; {
description = "An implementation of chunked, compressed, N-dimensional arrays for Python";
homepage = https://github.com/zarr-developers/zarr;
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3804,6 +3804,8 @@ in {

numba = callPackage ../development/python-modules/numba { };

numcodecs = callPackage ../development/python-modules/numcodecs { };

numexpr = callPackage ../development/python-modules/numexpr { };

Nuitka = callPackage ../development/python-modules/nuitka { };
Expand Down Expand Up @@ -3887,6 +3889,8 @@ in {

zake = callPackage ../development/python-modules/zake { };

zarr = callPackage ../development/python-modules/zarr { };

kazoo = callPackage ../development/python-modules/kazoo { };

FormEncode = callPackage ../development/python-modules/FormEncode { };
Expand Down