38 lines
839 B
Nix
38 lines
839 B
Nix
{
|
|||
lib,
|
|||
buildPythonPackage,
|
|||
fetchFromGitHub,
|
|||
hatchling,
|
|||
pytestCheckHook,
|
|||
pythonOlder,
|
|||
}:
|
|||
|
|||
buildPythonPackage rec {
|
|||
pname = "turrishw";
|
|||
version = "1.0.0";
|
|||
pyproject = true;
|
|||
|
|||
disabled = pythonOlder "3.10";
|
|||
|
|||
src = fetchFromGitHub {
|
|||
owner = "turris-cz";
|
|||
repo = "turrishw";
|
|||
rev = "refs/tags/v${version}";
|
|||
hash = "sha256-elu2f54asdzdn7wQT2CKo8kVYnc1KTakRyr8Nxu+XNw=";
|
|||
};
|
|||
|
|||
build-system = [ hatchling ];
|
|||
|
|||
nativeCheckInputs = [ pytestCheckHook ];
|
|||
|
|||
pythonImportsCheck = [ "turrishw" ];
|
|||
|
|||
meta = {
|
|||
description = "Python library and program for Turris hardware listing";
|
|||
homepage = "https://github.com/turris-cz/turrishw";
|
|||
changelog = "https://github.com/turris-cz/turrishw/blob/${src.rev}/CHANGELOG.md";
|
|||
license = lib.licenses.mit;
|
|||
maintainers = with lib.maintainers; [ fab ];
|
|||
};
|
|||
}
|