1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 unittestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "standard-telnetlib";
11 version = "3.13.0";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "youknowone";
16 repo = "python-deadlib";
17 tag = "v${version}";
18 hash = "sha256-vhGFTd1yXL4Frqli5D1GwOatwByDjvcP8sxgkdu6Jqg=";
19 };
20
21 sourceRoot = "${src.name}/telnetlib";
22
23 build-system = [ setuptools ];
24
25 # missing "reads" fixture when using pytest
26 nativeCheckInputs = [ unittestCheckHook ];
27
28 pythonImportsCheck = [ "telnetlib" ];
29
30 meta = {
31 description = "Python dead batteries. See PEP 594";
32 homepage = "https://github.com/youknowone/python-deadlib";
33 license = lib.licenses.psfl;
34 maintainers = with lib.maintainers; [ hexa ];
35 };
36}