Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchPypi, 4 buildPythonPackage, 5 setuptools, 6}: 7 8buildPythonPackage rec { 9 pname = "distro"; 10 version = "1.9.0"; 11 format = "pyproject"; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-L6d8b9iUDxFu4da5Si+QsTteqNAZuYvIuv3KvN2b2+0="; 16 }; 17 18 nativeBuildInputs = [ setuptools ]; 19 20 # tests are very targeted at individual linux distributions 21 doCheck = false; 22 23 pythonImportsCheck = [ "distro" ]; 24 25 meta = with lib; { 26 homepage = "https://github.com/nir0s/distro"; 27 description = "Linux Distribution - a Linux OS platform information API"; 28 mainProgram = "distro"; 29 license = licenses.asl20; 30 maintainers = [ ]; 31 }; 32}