python.pkgs.aniso8601 : move to separate expression

This commit is contained in:
wisut hantanong 2017-07-19 17:29:13 +07:00
parent 4206da05b0
commit ff6797e8aa
2 changed files with 22 additions and 17 deletions

View file

@ -0,0 +1,21 @@
{ stdenv, buildPythonPackage, fetchPypi
, dateutil }:
buildPythonPackage rec {
pname = "aniso8601";
version = "1.2.0";
name = "${pname}-${version}";
meta = with stdenv.lib; {
description = "Parses ISO 8601 strings.";
homepage = "https://bitbucket.org/nielsenb/aniso8601";
license = licenses.bsd3;
};
propagatedBuildInputs = [ dateutil ];
src = fetchPypi {
inherit pname version;
sha256 = "502400f82574afa804cc915d83f15c67533d364dcd594f8a6b9d2053f3404dd4";
};
}

View file

@ -311,23 +311,7 @@ in {
ansicolors = callPackage ../development/python-modules/ansicolors {};
aniso8601 = buildPythonPackage rec {
name = "aniso8601-${version}";
version = "1.2.0";
meta = {
description = "Parses ISO 8601 strings.";
homepage = "https://bitbucket.org/nielsenb/aniso8601";
license = licenses.bsd3;
};
propagatedBuildInputs = with self; [ dateutil ];
src = pkgs.fetchurl {
url = "mirror://pypi/a/aniso8601/${name}.tar.gz";
sha256 = "502400f82574afa804cc915d83f15c67533d364dcd594f8a6b9d2053f3404dd4";
};
};
aniso8601 = callPackage ../development/python-modules/aniso8601 {};
asgiref = callPackage ../development/python-modules/asgiref { };