mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-09 05:57:04 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
41 lines
804 B
Nix
41 lines
804 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
ward,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "linuxpy";
|
|
version = "0.21.0";
|
|
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-13TWyTM1FvyAPNUQ4o3yTQHh7ezxysVMiEl+eLDkHGo=";
|
|
};
|
|
|
|
pythonImportsCheck = [ "linuxpy" ];
|
|
|
|
# Checks depend on WARD testing framework which is broken
|
|
doCheck = false;
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
ward
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
meta = {
|
|
description = "Human friendly interface to Linux subsystems using Python";
|
|
homepage = "https://github.com/tiagocoutinho/linuxpy";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ willow ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|