summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-stdnum
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-11-05 01:22:29 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2022-11-05 01:22:29 +0100
commitcd7b1e6e3a733d65e8279eb06a13695ec83e0ff1 (patch)
tree52cccf42c2892d42fdf9dd08b3045c5e02b7caf0 /pkgs/development/python-modules/python-stdnum
parent04abe7d80cad6613b75a8786ac27e5a402125b73 (diff)
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 ];
};
}