diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-04-26 09:49:51 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-04-26 20:14:02 +0200 |
commit | 774d7e5fa259066b342e2b28ace0c47e8fbc3fa9 (patch) | |
tree | 0e92414dc5721396d715e2103a94a904555f9470 /pkgs/development | |
parent | f2ab8d299290170b7738c372be680da49df6d593 (diff) | |
download | nixpkgs-774d7e5fa259066b342e2b28ace0c47e8fbc3fa9.tar nixpkgs-774d7e5fa259066b342e2b28ace0c47e8fbc3fa9.tar.gz nixpkgs-774d7e5fa259066b342e2b28ace0c47e8fbc3fa9.tar.bz2 nixpkgs-774d7e5fa259066b342e2b28ace0c47e8fbc3fa9.tar.lz nixpkgs-774d7e5fa259066b342e2b28ace0c47e8fbc3fa9.tar.xz nixpkgs-774d7e5fa259066b342e2b28ace0c47e8fbc3fa9.tar.zst nixpkgs-774d7e5fa259066b342e2b28ace0c47e8fbc3fa9.zip |
python3Packages.iso8601: switch to pytestCheckHook
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/iso8601/default.nix | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/iso8601/default.nix b/pkgs/development/python-modules/iso8601/default.nix index 783f6f1eb30..40483390460 100644 --- a/pkgs/development/python-modules/iso8601/default.nix +++ b/pkgs/development/python-modules/iso8601/default.nix @@ -1,7 +1,7 @@ { lib , buildPythonPackage , fetchPypi -, pytest +, pytestCheckHook }: buildPythonPackage rec { @@ -13,15 +13,18 @@ buildPythonPackage rec { sha256 = "8aafd56fa0290496c5edbb13c311f78fa3a241f0853540da09d9363eae3ebd79"; }; - checkInputs = [ pytest ]; + checkInputs = [ + pytestCheckHook + ]; - checkPhase = '' - py.test iso8601 - ''; + pytestFlagsArray = [ "iso8601" ]; - meta = { - homepage = "https://bitbucket.org/micktwomey/pyiso8601/"; + pythonImportsCheck = [ "iso8601" ]; + + meta = with lib; { description = "Simple module to parse ISO 8601 dates"; - maintainers = with lib.maintainers; [ phreedom ]; + homepage = "https://pyiso8601.readthedocs.io/"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ phreedom ]; }; } |