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