pythonPackages.jdatetime: Move to own file

This commit is contained in:
Elis Hirwing 2018-04-03 14:17:01 +02:00 committed by Frederik Rietdijk
parent 0fe45ad2c3
commit b3d8cb9051
2 changed files with 20 additions and 17 deletions

View File

@ -0,0 +1,19 @@
{ stdenv, buildPythonPackage, fetchPypi, six }:
buildPythonPackage rec {
pname = "jdatetime";
version = "1.7.1";
src = fetchPypi {
inherit pname version;
sha256 = "1b1ksspm86r272ar8v0v4ip1821i4azpix6xhxpb4l133iwsb2y0";
};
propagatedBuildInputs = [ six ];
meta = with stdenv.lib; {
description = "Jalali datetime binding for python";
homepage = https://pypi.python.org/pypi/jdatetime;
license = licenses.psfl;
};
}

View File

@ -2065,23 +2065,7 @@ in {
neurotools = callPackage ../development/python-modules/neurotools {}; neurotools = callPackage ../development/python-modules/neurotools {};
jdatetime = buildPythonPackage (rec { jdatetime = callPackage ../development/python-modules/jdatetime {};
name = "jdatetime-${version}";
version = "1.7.1";
src = pkgs.fetchurl {
url = "mirror://pypi/j/jdatetime/${name}.tar.gz";
sha256 = "c08ba5791c2350b26e87ddf478bf223108146e241b6c949538221b54afd633ac";
};
propagatedBuildInputs = with self; [ self.six ];
meta = {
description = "Jalali datetime binding for python";
homepage = https://pypi.python.org/pypi/jdatetime;
license = licenses.psfl;
};
});
daphne = callPackage ../development/python-modules/daphne { }; daphne = callPackage ../development/python-modules/daphne { };