diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-04-27 18:10:08 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-05-05 20:22:41 +0200 |
commit | 2abb528ac509c0c021d0ef83e0c99c6be89f276d (patch) | |
tree | 1ecf078eaf750003521261e7290ccc10d5cef6c4 /pkgs/development/python-modules/aniso8601 | |
parent | 8456c41c67e39bb5c59bf602d6e61e01bb61a22d (diff) |
python3Packages.aniso8601: 8.1.1 -> 9.0.1
Diffstat (limited to 'pkgs/development/python-modules/aniso8601')
-rw-r--r-- | pkgs/development/python-modules/aniso8601/default.nix | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/aniso8601/default.nix b/pkgs/development/python-modules/aniso8601/default.nix index f28668a8912bf..9cc3fb8277559 100644 --- a/pkgs/development/python-modules/aniso8601/default.nix +++ b/pkgs/development/python-modules/aniso8601/default.nix @@ -1,22 +1,35 @@ -{ lib, buildPythonPackage, fetchPypi -, dateutil, mock, isPy3k }: +{ lib +, buildPythonPackage +, dateutil +, fetchPypi +, isPy3k +, mock +, pytestCheckHook +}: buildPythonPackage rec { pname = "aniso8601"; version = "9.0.1"; - meta = with lib; { - description = "Parses ISO 8601 strings."; - homepage = "https://bitbucket.org/nielsenb/aniso8601"; - license = licenses.bsd3; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-cuMRdmfu32aVG7LZP0KWpWuUsHioqVkFoFJhH7PxuXM="; }; - propagatedBuildInputs = [ dateutil ]; + propagatedBuildInputs = [ + dateutil + ]; - checkInputs = lib.optional (!isPy3k) mock; + checkInputs = [ + pytestCheckHook + ] ++ lib.optional (!isPy3k) mock; - src = fetchPypi { - inherit pname version; - sha256 = "72e3117667eedf66951bb2d93f4296a56b94b078a8a95905a052611fb3f1b973"; + pythonImportsCheck = [ "aniso8601" ]; + + meta = with lib; { + description = "Python Parser for ISO 8601 strings"; + homepage = "https://bitbucket.org/nielsenb/aniso8601"; + license = with licenses; [ bsd3 ]; + maintainers = with maintainers; [ fab ]; }; } |