1{ stdenv, fetchPypi, buildPythonPackage, pytest, pytestcov, tox }: 2 3buildPythonPackage rec { 4 name = "${pname}-${version}"; 5 pname = "distro"; 6 version = "1.2.0"; 7 8 buildInputs = [ pytest pytestcov tox]; 9 10 checkPhase = '' 11 touch tox.ini 12 tox 13 ''; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "d94370e43b676ac44fbe1ab68ca903a6147eaba3a9e8eff85b2c05556a455b76"; 18 }; 19 20 meta = with stdenv.lib; { 21 homepage = https://github.com/nir0s/distro; 22 description = "Linux Distribution - a Linux OS platform information API."; 23 license = licenses.asl20; 24 maintainers = with maintainers; [ nand0p ]; 25 }; 26}