mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-08 22:33:52 +00:00
45 lines
965 B
Nix
45 lines
965 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
pytestCheckHook,
|
|
ps,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "duct-py";
|
|
version = "1.0.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "oconnor663";
|
|
repo = "duct.py";
|
|
tag = version;
|
|
hash = "sha256-i811nQB8CVJPYPR0Jdzpk64EXxrTMDIBpdDoUs9Xu/k=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
pythonImportsCheck = [ "duct" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
ps
|
|
];
|
|
|
|
disabledTests = [
|
|
# This test completely empties the environment then tries to run a Python command.
|
|
# The test then fails because it can't find the `python` executable. It's unclear
|
|
# how this test even passes _outside_ of Nix.
|
|
"test_full_env"
|
|
];
|
|
|
|
meta = {
|
|
description = "Python library for running child processes";
|
|
homepage = "https://github.com/oconnor663/duct.py";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ zmitchell ];
|
|
};
|
|
}
|