1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "standard-imghdr";
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}/imghdr";
22
23 build-system = [ setuptools ];
24
25 nativeCheckInputs = [ pytestCheckHook ];
26
27 pythonImportsCheck = [ "imghdr" ];
28
29 meta = {
30 description = "Python dead batteries. See PEP 594";
31 homepage = "https://github.com/youknowone/python-deadlib";
32 license = lib.licenses.psfl;
33 maintainers = with lib.maintainers; [ hexa ];
34 };
35}