mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
33 lines
659 B
Nix
33 lines
659 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "distro";
|
|
version = "1.8.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-AuER0dxqUKu47ta/McPkjtiwgw0eoqG3jGF2XCUT/dg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
# tests are very targeted at individual linux distributions
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "distro" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/nir0s/distro";
|
|
description = "Linux Distribution - a Linux OS platform information API.";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|