depot/third_party/nixpkgs/pkgs/development/python-modules/python-stdnum/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

45 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
pythonOlder,
setuptools,
zeep,
}:
buildPythonPackage rec {
pname = "python-stdnum";
version = "1.20";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-rSos8usCXeQIIQI182tK4xJS3jGGJAzKqBJuEXy4JpA=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace-fail " --cov=stdnum --cov-report=term-missing:skip-covered --cov-report=html" ""
'';
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
passthru.optional-dependencies = {
SOAP = [ zeep ];
};
pythonImportsCheck = [ "stdnum" ];
meta = with lib; {
description = "Python module to handle standardized numbers and codes";
homepage = "https://arthurdejong.org/python-stdnum/";
changelog = "https://github.com/arthurdejong/python-stdnum/blob/${version}/ChangeLog";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ johbo ];
};
}