python.pkgs.datashape: move expression

This commit is contained in:
Frederik Rietdijk 2017-10-29 12:48:07 +01:00
parent 801d38ea3a
commit 119a58abbe
2 changed files with 35 additions and 23 deletions

View File

@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, mock
, numpy
, multipledispatch
, dateutil
}:
buildPythonPackage rec {
pname = "datashape";
version = "0.5.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "2356ea690c3cf003c1468a243a9063144235de45b080b3652de4f3d44e57d783";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ numpy multipledispatch dateutil ];
checkPhase = ''
py.test datashape/tests
'';
meta = {
homepage = https://github.com/ContinuumIO/datashape;
description = "A data description language";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ fridh ];
};
}

View File

@ -4523,29 +4523,7 @@ in {
};
};
datashape = buildPythonPackage rec {
name = "datashape-${version}";
version = "0.5.2";
src = pkgs.fetchurl {
url = "mirror://pypi/D/DataShape/${name}.tar.gz";
sha256 = "2356ea690c3cf003c1468a243a9063144235de45b080b3652de4f3d44e57d783";
};
buildInputs = with self; [ pytest mock ];
propagatedBuildInputs = with self; [ numpy multipledispatch dateutil ];
checkPhase = ''
py.test datashape/tests
'';
meta = {
homepage = https://github.com/ContinuumIO/datashape;
description = "A data description language";
license = licenses.bsd2;
maintainers = with maintainers; [ fridh ];
};
};
datashape = callPackage ../development/python-modules/datashape { };
requests-cache = buildPythonPackage (rec {
name = "requests-cache-${version}";