2017-03-20 16:36:57 +00:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, pytest, pytestcov, tox }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "distro";
|
2017-05-27 13:24:47 +01:00
|
|
|
version = "1.0.4";
|
2017-03-20 16:36:57 +00:00
|
|
|
|
|
|
|
buildInputs = [ pytest pytestcov tox];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
touch tox.ini
|
|
|
|
tox
|
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-05-27 13:24:47 +01:00
|
|
|
sha256 = "9b000b0d637bb0cbd130a7a4835681e6993e309a85564dfea9d884825fe46954";
|
2017-03-20 16:36:57 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|