2017-03-20 17:36:57 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, pytest, pytestcov, tox }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "distro";
|
2017-12-30 12:22:12 +01:00
|
|
|
version = "1.2.0";
|
2017-03-20 17:36:57 +01:00
|
|
|
|
|
|
|
buildInputs = [ pytest pytestcov tox];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
touch tox.ini
|
|
|
|
tox
|
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-12-30 12:22:12 +01:00
|
|
|
sha256 = "d94370e43b676ac44fbe1ab68ca903a6147eaba3a9e8eff85b2c05556a455b76";
|
2017-03-20 17:36:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/nir0s/distro;
|
|
|
|
description = "Linux Distribution - a Linux OS platform information API.";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ nand0p ];
|
|
|
|
};
|
|
|
|
}
|