37 lines
795 B
Nix
37 lines
795 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "standard-telnetlib";
|
|
version = "3.13.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "youknowone";
|
|
repo = "python-deadlib";
|
|
tag = "v${version}";
|
|
hash = "sha256-vhGFTd1yXL4Frqli5D1GwOatwByDjvcP8sxgkdu6Jqg=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/telnetlib";
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
# missing "reads" fixture when using pytest
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "telnetlib" ];
|
|
|
|
meta = {
|
|
description = "Python dead batteries. See PEP 594";
|
|
homepage = "https://github.com/youknowone/python-deadlib";
|
|
license = lib.licenses.psfl;
|
|
maintainers = with lib.maintainers; [ hexa ];
|
|
};
|
|
}
|