1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "puremagic"; 12 version = "1.30"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "cdgriffith"; 19 repo = "puremagic"; 20 tag = version; 21 hash = "sha256-k2xrcML8XxI9cMTQTv0pDLkOrmEr5mbDnVsyWuD1rEc="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "puremagic" ]; 29 30 meta = with lib; { 31 description = "Implementation of magic file detection"; 32 homepage = "https://github.com/cdgriffith/puremagic"; 33 changelog = "https://github.com/cdgriffith/puremagic/blob/${src.tag}/CHANGELOG.md"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ globin ]; 36 }; 37}