pythonPackages.distro: init 1.0.3
- tested on darwin - tested on nixos
This commit is contained in:
26
pkgs/development/python-modules/distro/default.nix
Normal file
26
pkgs/development/python-modules/distro/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, pytest, pytestcov, tox }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "distro";
|
||||
version = "1.0.3";
|
||||
|
||||
buildInputs = [ pytest pytestcov tox];
|
||||
|
||||
checkPhase = ''
|
||||
touch tox.ini
|
||||
tox
|
||||
'';
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1kmjdz1kxspsmps73m2kzhxz86jj43ikx825hmgmwbx793ywv69d";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user