nixpkgs/pkgs/development/python-modules/ptyprocess/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

45 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
fetchpatch,
flit-core,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "ptyprocess";
version = "0.7.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-XF0KO0jO7gtISF4MJgN8Cs19KXZco/u1yzgx00dCMiA=";
};
patches = [
# Remove after https://github.com/pexpect/ptyprocess/pull/64 is merged.
(fetchpatch {
url = "https://github.com/pexpect/ptyprocess/commit/40c1ccf3432a6787be1801ced721540e34c6cd87.patch";
hash = "sha256-IemngBqBq3QRCmVscWtsuXHiFgvTOJIIB9SyAvsqHd0=";
})
(fetchpatch {
url = "https://github.com/pexpect/ptyprocess/commit/a44312974bd9084aa568d2e18ce5b2a7e0e45983.patch";
hash = "sha256-DEO4FbzKNAXADYocSQhhwjQTGGu9V5pqd38u1sWhpOI=";
})
];
build-system = [ flit-core ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "ptyprocess" ];
meta = {
description = "Run a subprocess in a pseudo terminal";
homepage = "https://github.com/pexpect/ptyprocess";
changelog = "https://github.com/pexpect/ptyprocess/releases/tag/${version}";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ getchoo ];
};
}