nixpkgs/pkgs/development/python-modules/distro/default.nix
Michael Weiss 871cd756c8
python.pkgs.distro: Re-enable the package for now
Most tests are fine (only 20 out of 173 fail, 10 because lsb_release is
not available or returns exit code 3 and the other 10 might also fail
due to the sandboxed build environment).
Manual tests show that distro works as intended in a normal environment.

See 9382d2ea76
2019-03-14 13:14:52 +01:00

29 lines
717 B
Nix

{ stdenv, fetchPypi, buildPythonPackage, pytest, pytestcov, tox }:
buildPythonPackage rec {
pname = "distro";
version = "1.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "0mrg75w4ap7mdzyga75yaid9n8bgb345ih5mwjp3plj6v1jxwb9n";
};
# TODO: Enable more tests on NixOS (20 out of 173 are failing, 10 due to the
# missing lsb_release binary):
patches = [ ./nixos.patch ];
checkInputs = [ pytest pytestcov ];
checkPhase = ''
py.test
'';
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 ];
};
}