Files
nixpkgs/pkgs/development/python-modules/duct/default.nix
Felix Buehler d5549fdc16 python3Packages.duct: rename from duct-py
The PyPI distribution is called "duct", so pythonMetadataCheckPhase
could not find metadata for "duct-py". Rename the attribute to match
and keep an alias.

Assisted-by: claude-opus-5-5
2026-10-13 21:13:00 +02:00

45 lines
962 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytestCheckHook,
ps,
}:
buildPythonPackage rec {
pname = "duct";
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 ];
};
}