summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-stdnum
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2022-11-05 09:53:21 +0100
committerGitHub <noreply@github.com>2022-11-05 09:53:21 +0100
commit706c35a1d597f9e539b76e70defb8873561c42f7 (patch)
treee4d4df860a3fbd7abe794ce2a65d8a7be6cad10e /pkgs/development/python-modules/python-stdnum
parent5c1a9de616925910a66481e8a4cbedab527a1dba (diff)
parentcd7b1e6e3a733d65e8279eb06a13695ec83e0ff1 (diff)
Merge pull request #199603 from fabaff/stdnum-fix
python310Packages.python-stdnum: don't run doctests
Diffstat (limited to 'pkgs/development/python-modules/python-stdnum')
-rw-r--r--pkgs/development/python-modules/python-stdnum/default.nix33
1 files changed, 22 insertions, 11 deletions
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 ];
};
}