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