nixpkgs/pkgs/development/python-modules/os-service-types/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

43 lines
1.0 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pbr
, six
, callPackage
}:
buildPythonPackage rec {
pname = "os-service-types";
version = "1.7.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "31800299a82239363995b91f1ebf9106ac7758542a1e4ef6dc737a5932878c6c";
};
postPatch = ''
# only a small portion of the listed packages are actually needed for running the tests
# so instead of removing them one by one remove everything
rm test-requirements.txt
'';
propagatedBuildInputs = [ pbr six ];
# check in passthru.tests.pytest to escape infinite recursion with other oslo components
doCheck = false;
passthru.tests = {
tests = callPackage ./tests.nix { };
};
pythonImportsCheck = [ "os_service_types" ];
meta = with lib; {
description = "Python library for consuming OpenStack service-types-authority data";
homepage = "https://github.com/openstack/os-service-types";
license = licenses.asl20;
maintainers = teams.openstack.members;
};
}