at master 914 B view raw
1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 fetchFromGitHub, 6 hatchling, 7 pytestCheckHook, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "turrishw"; 13 version = "1.1.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.10"; 17 18 src = fetchFromGitHub { 19 owner = "turris-cz"; 20 repo = "turrishw"; 21 tag = "v${version}"; 22 hash = "sha256-LQ1ebcVQo7jixAKOPg/oNBnRU8AZebHANfDU4lamB8g="; 23 }; 24 25 build-system = [ hatchling ]; 26 27 nativeCheckInputs = [ pytestCheckHook ]; 28 29 # Tests don't work on darwin 30 doCheck = !stdenv.hostPlatform.isDarwin; 31 32 pythonImportsCheck = [ "turrishw" ]; 33 34 meta = { 35 description = "Python library and program for Turris hardware listing"; 36 homepage = "https://github.com/turris-cz/turrishw"; 37 changelog = "https://github.com/turris-cz/turrishw/blob/${src.tag}/CHANGELOG.md"; 38 license = lib.licenses.mit; 39 maintainers = with lib.maintainers; [ fab ]; 40 }; 41}