Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, debtcollector 5, netaddr 6, oslo-i18n 7, pbr 8, pyyaml 9, requests 10, rfc3986 11, stevedore 12, callPackage 13}: 14 15buildPythonPackage rec { 16 pname = "oslo-config"; 17 version = "9.1.1"; 18 19 src = fetchPypi { 20 pname = "oslo.config"; 21 inherit version; 22 hash = "sha256-sHZUtT2HeSro5zmWKtcpxSnJk4oRjYkezp7jHVlxa8k="; 23 }; 24 25 postPatch = '' 26 # only a small portion of the listed packages are actually needed for running the tests 27 # so instead of removing them one by one remove everything 28 rm test-requirements.txt 29 ''; 30 31 propagatedBuildInputs = [ 32 debtcollector 33 netaddr 34 oslo-i18n 35 pbr 36 pyyaml 37 requests 38 rfc3986 39 stevedore 40 ]; 41 42 # check in passthru.tests.pytest to escape infinite recursion with other oslo components 43 doCheck = false; 44 45 passthru.tests = { 46 tests = callPackage ./tests.nix {}; 47 }; 48 49 pythonImportsCheck = [ "oslo_config" ]; 50 51 meta = with lib; { 52 description = "Oslo Configuration API"; 53 homepage = "https://github.com/openstack/oslo.config"; 54 license = licenses.asl20; 55 maintainers = teams.openstack.members; 56 }; 57}