1{ lib
2, buildPythonPackage
3, fetchPypi
4, setuptools_scm
5, cython
6, numpy
7, msgpack
8, pytest
9, python
10}:
11
12buildPythonPackage rec {
13 pname = "numcodecs";
14 version = "0.6.3";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "086qwlyi01rpgyyyy8bmhh9i7hpksyz33ldci3wdwmhiblyl362y";
19 };
20
21 nativeBuildInputs = [
22 setuptools_scm
23 cython
24 ];
25
26 propagatedBuildInputs = [
27 numpy
28 msgpack
29 ];
30
31 checkInputs = [
32 pytest
33 ];
34
35 checkPhase = ''
36 pytest $out/${python.sitePackages}/numcodecs -k "not test_backwards_compatibility"
37 '';
38
39 meta = with lib;{
40 homepage = https://github.com/alimanfoo/numcodecs;
41 license = licenses.mit;
42 description = "Buffer compression and transformation codecs for use in data storage and communication applications";
43 maintainers = [ maintainers.costrouc ];
44 };
45}