python.pkgs.iso8601: move expression
This commit is contained in:
parent
7c82255c6b
commit
606b6addb0
27
pkgs/development/python-modules/iso8601/default.nix
Normal file
27
pkgs/development/python-modules/iso8601/default.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "iso8601";
|
||||
version = "0.1.11";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e8fb52f78880ae063336c94eb5b87b181e6a0cc33a6c008511bac9a6e980ef30";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test iso8601
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = https://bitbucket.org/micktwomey/pyiso8601/;
|
||||
description = "Simple module to parse ISO 8601 dates";
|
||||
maintainers = with lib.maintainers; [ phreedom ];
|
||||
};
|
||||
}
|
@ -9665,26 +9665,7 @@ in {
|
||||
|
||||
iso3166 = callPackage ../development/python-modules/iso3166 {};
|
||||
|
||||
iso8601 = buildPythonPackage rec {
|
||||
name = "iso8601-${version}";
|
||||
version = "0.1.11";
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/i/iso8601/${name}.tar.gz";
|
||||
sha256 = "e8fb52f78880ae063336c94eb5b87b181e6a0cc33a6c008511bac9a6e980ef30";
|
||||
};
|
||||
|
||||
buildInputs = [ self.pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test iso8601
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = https://bitbucket.org/micktwomey/pyiso8601/;
|
||||
description = "Simple module to parse ISO 8601 dates";
|
||||
maintainers = with maintainers; [ phreedom ];
|
||||
};
|
||||
};
|
||||
iso8601 = callPackage ../development/python-modules/iso8601 { };
|
||||
|
||||
isort = buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
|
Loading…
Reference in New Issue
Block a user