1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 setuptools,
7 ward,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "linuxpy";
13 version = "0.21.0";
14
15 pyproject = true;
16
17 disabled = pythonOlder "3.9";
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "sha256-13TWyTM1FvyAPNUQ4o3yTQHh7ezxysVMiEl+eLDkHGo=";
22 };
23
24 pythonImportsCheck = [ "linuxpy" ];
25
26 # Checks depend on WARD testing framework which is broken
27 doCheck = false;
28 nativeCheckInputs = [
29 pytestCheckHook
30 ward
31 ];
32
33 nativeBuildInputs = [
34 setuptools
35 ];
36
37 meta = with lib; {
38 description = "Human friendly interface to Linux subsystems using Python";
39 homepage = "https://github.com/tiagocoutinho/linuxpy";
40 license = licenses.gpl3Plus;
41 maintainers = with lib.maintainers; [ willow ];
42 platforms = lib.platforms.linux;
43 };
44}