1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "turrishw"; 12 version = "1.0.0"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.10"; 16 17 src = fetchFromGitHub { 18 owner = "turris-cz"; 19 repo = "turrishw"; 20 tag = "v${version}"; 21 hash = "sha256-elu2f54asdzdn7wQT2CKo8kVYnc1KTakRyr8Nxu+XNw="; 22 }; 23 24 build-system = [ hatchling ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "turrishw" ]; 29 30 meta = { 31 description = "Python library and program for Turris hardware listing"; 32 homepage = "https://github.com/turris-cz/turrishw"; 33 changelog = "https://github.com/turris-cz/turrishw/blob/${src.rev}/CHANGELOG.md"; 34 license = lib.licenses.mit; 35 maintainers = with lib.maintainers; [ fab ]; 36 }; 37}