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