From cd7b1e6e3a733d65e8279eb06a13695ec83e0ff1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 5 Nov 2022 01:22:29 +0100 Subject: python310Packages.python-stdnum: don't run doctests --- .../python-modules/python-stdnum/default.nix | 33 ++++++++++++++-------- 1 file changed, 22 insertions(+), 11 deletions(-) (limited to 'pkgs/development/python-modules/python-stdnum') diff --git a/pkgs/development/python-modules/python-stdnum/default.nix b/pkgs/development/python-modules/python-stdnum/default.nix index bb809674e830..51ac732b1729 100644 --- a/pkgs/development/python-modules/python-stdnum/default.nix +++ b/pkgs/development/python-modules/python-stdnum/default.nix @@ -1,23 +1,34 @@ -{ lib, fetchPypi, buildPythonPackage, nose }: +{ lib +, buildPythonPackage +, fetchPypi +, pytestCheckHook +, pythonOlder +}: buildPythonPackage rec { - version = "1.17"; pname = "python-stdnum"; + version = "1.17"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + src = fetchPypi { inherit pname version; - sha256 = "374e2b5e13912ccdbf50b0b23fca2c3e0531174805c32d74e145f37756328340"; + hash = "sha256-N04rXhORLM2/ULCyP8osPgUxF0gFwy104UXzd1Yyg0A="; }; - checkInputs = [ nose ]; + checkInputs = [ + pytestCheckHook + ]; - checkPhase = '' - nosetests - ''; + pythonImportsCheck = [ + "stdnum" + ]; - meta = { - homepage = "https://arthurdejong.org/python-stdnum/"; + meta = with lib; { description = "Python module to handle standardized numbers and codes"; - maintainers = with lib.maintainers; [ johbo ]; - license = lib.licenses.lgpl2Plus; + homepage = "https://arthurdejong.org/python-stdnum/"; + license = licenses.lgpl21Plus; + maintainers = with maintainers; [ johbo ]; }; } -- cgit v1.2.3