1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "duct-py";
9 version = "0.6.4";
10 format = "setuptools";
11
12 src = fetchFromGitHub {
13 owner = "oconnor663";
14 repo = "duct.py";
15 rev = version;
16 hash = "sha256-4ja/SQ9R/SbKlf3NqKxLi+Fl/4JI0Fl/zG9EmTZjWZc=";
17 };
18
19 pythonImportsCheck = [ "duct" ];
20
21 nativeCheckInputs = [
22 pytestCheckHook
23 ];
24
25 disabledTests = [
26 # This test completely empties the environment then tries to run a Python command.
27 # The test then fails because it can't find the `python` executable. It's unclear
28 # how this test even passes _outside_ of Nix.
29 "test_full_env"
30 ];
31
32 meta = with lib; {
33 description = "A Python library for running child processes";
34 homepage = "https://github.com/oconnor663/duct.py";
35 license = licenses.mit;
36 maintainers = with maintainers; [ zmitchell ];
37 };
38}