Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 28 lines 712 B view raw
1{ stdenv, fetchPypi, buildPythonPackage, pytest, pytestcov }: 2 3buildPythonPackage rec { 4 pname = "distro"; 5 version = "1.4.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "0mrg75w4ap7mdzyga75yaid9n8bgb345ih5mwjp3plj6v1jxwb9n"; 10 }; 11 12 # TODO: Enable more tests on NixOS (20 out of 173 are failing, 10 due to the 13 # missing lsb_release binary): 14 patches = [ ./nixos.patch ]; 15 16 checkInputs = [ pytest pytestcov ]; 17 18 checkPhase = '' 19 py.test 20 ''; 21 22 meta = with stdenv.lib; { 23 homepage = https://github.com/nir0s/distro; 24 description = "Linux Distribution - a Linux OS platform information API."; 25 license = licenses.asl20; 26 maintainers = with maintainers; [ nand0p ]; 27 }; 28}