Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 60 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ lib, buildPythonPackage, fetchPypi, netaddr, oslo-i18n, pbr, pyyaml, requests, rfc3986, setuptools, stevedore, callPackage,}:
buildPythonPackage rec { pname = "oslo-config"; version = "10.0.0"; pyproject = true;
src = fetchPypi { pname = "oslo_config"; inherit version; hash = "sha256-Mz5nXbjGvncVs97PeMOYyhE4Q5IlqidGMuiTFIN/bqM="; };
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 '';
build-system = [ setuptools ];
dependencies = [ netaddr oslo-i18n pbr pyyaml requests rfc3986 stevedore ];
# check in passthru.tests.pytest to escape infinite recursion with other oslo components doCheck = false;
passthru.tests = { tests = callPackage ./tests.nix { }; };
pythonImportsCheck = [ "oslo_config" ];
meta = with lib; { description = "Oslo Configuration API"; homepage = "https://github.com/openstack/oslo.config"; license = licenses.asl20; teams = [ teams.openstack ]; };}