mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
python.pkgs.aniso8601 : move to separate expression
This commit is contained in:
parent
4206da05b0
commit
ff6797e8aa
2 changed files with 22 additions and 17 deletions
21
pkgs/development/python-modules/aniso8601/default.nix
Normal file
21
pkgs/development/python-modules/aniso8601/default.nix
Normal 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";
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue