python.pkgs.iso8601: move expression

This commit is contained in:
Frederik Rietdijk 2017-12-31 11:48:00 +01:00
parent 7c82255c6b
commit 606b6addb0
2 changed files with 28 additions and 20 deletions

View 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 ];
};
}

View File

@ -9665,26 +9665,7 @@ in {
iso3166 = callPackage ../development/python-modules/iso3166 {}; iso3166 = callPackage ../development/python-modules/iso3166 {};
iso8601 = buildPythonPackage rec { iso8601 = callPackage ../development/python-modules/iso8601 { };
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 ];
};
};
isort = buildPythonPackage rec { isort = buildPythonPackage rec {
name = "${pname}-${version}"; name = "${pname}-${version}";