python312Packages.ptyprocess: refactor

This commit is contained in:
Fabian Affolter
2024-02-15 10:26:47 +01:00
parent f893cc7daa
commit 505bdf9a66
@@ -2,16 +2,21 @@
, buildPythonPackage
, fetchPypi
, fetchpatch
, flit-core
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "ptyprocess";
version = "0.7.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "5c5d0a3b48ceee0b48485e0c26037c0acd7d29765ca3fbb5cb3831d347423220";
hash = "sha256-XF0KO0jO7gtISF4MJgN8Cs19KXZco/u1yzgx00dCMiA=";
};
patches = [
@@ -22,9 +27,23 @@ buildPythonPackage rec {
})
];
meta = {
nativeBuildInputs = [
flit-core
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"ptyprocess"
];
meta = with lib; {
description = "Run a subprocess in a pseudo terminal";
homepage = "https://github.com/pexpect/ptyprocess";
license = lib.licenses.isc;
changelog = "https://github.com/pexpect/ptyprocess/releases/tag/${version}";
license = licenses.isc;
maintainers = with maintainers; [ ];
};
}