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