python.pkgs.partd: move expression
This commit is contained in:
parent
8cbb718fa3
commit
8b5c5fb7c5
2 changed files with 36 additions and 24 deletions
35
pkgs/development/python-modules/partd/default.nix
Normal file
35
pkgs/development/python-modules/partd/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, locket
|
||||
, numpy
|
||||
, pandas
|
||||
, pyzmq
|
||||
, toolz
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "partd";
|
||||
version = "0.3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "066d254d2dh9xcanffgkjgwxpz5v0059b063bij10fvzl2y49hzx";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
propagatedBuildInputs = [ locket numpy pandas pyzmq toolz ];
|
||||
|
||||
checkPhase = ''
|
||||
rm partd/tests/test_zmq.py # requires network & fails
|
||||
py.test
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Appendable key-value storage";
|
||||
license = with lib.licenses; [ bsd3 ];
|
||||
homepage = https://github.com/dask/partd/;
|
||||
};
|
||||
}
|
|
@ -12656,30 +12656,7 @@ in {
|
|||
|
||||
parso = callPackage ../development/python-modules/parso { };
|
||||
|
||||
partd = buildPythonPackage rec {
|
||||
name = "partd-${version}";
|
||||
version = "0.3.7";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/p/partd/${name}.tar.gz";
|
||||
sha256 = "066d254d2dh9xcanffgkjgwxpz5v0059b063bij10fvzl2y49hzx";
|
||||
};
|
||||
|
||||
buildInputs = with self; [ pytest ];
|
||||
|
||||
propagatedBuildInputs = with self; [ locket numpy pandas pyzmq toolz ];
|
||||
|
||||
checkPhase = ''
|
||||
rm partd/tests/test_zmq.py # requires network & fails
|
||||
py.test
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Appendable key-value storage";
|
||||
license = with licenses; [ bsd3 ];
|
||||
homepage = https://github.com/dask/partd/;
|
||||
};
|
||||
};
|
||||
partd = callPackage ../development/python-modules/partd { };
|
||||
|
||||
patch = buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
|
|
Loading…
Reference in a new issue