1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, pythonOlder 6, zeep 7}: 8 9buildPythonPackage rec { 10 pname = "python-stdnum"; 11 version = "1.19"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-Ez7IL1Y5DqdMGQVp6Y8vsUuGmAix1UeFcI8i0P6tiz8="; 19 }; 20 21 postPatch = '' 22 substituteInPlace setup.cfg \ 23 --replace " --cov=stdnum --cov-report=term-missing:skip-covered --cov-report=html" "" 24 ''; 25 26 nativeCheckInputs = [ 27 pytestCheckHook 28 ]; 29 30 passthru.optional-dependencies = { 31 SOAP = [ 32 zeep 33 ]; 34 }; 35 36 pythonImportsCheck = [ 37 "stdnum" 38 ]; 39 40 meta = with lib; { 41 description = "Python module to handle standardized numbers and codes"; 42 homepage = "https://arthurdejong.org/python-stdnum/"; 43 changelog = "https://github.com/arthurdejong/python-stdnum/blob/${version}/ChangeLog"; 44 license = licenses.lgpl21Plus; 45 maintainers = with maintainers; [ johbo ]; 46 }; 47}