60 lines
973 B
Nix
60 lines
973 B
Nix
|
{
|
||
|
lib,
|
||
|
buildPythonPackage,
|
||
|
fetchFromGitHub,
|
||
|
pythonOlder,
|
||
|
|
||
|
# build-system
|
||
|
pbr,
|
||
|
setuptools,
|
||
|
|
||
|
# dependencies
|
||
|
inflection,
|
||
|
tinycss2,
|
||
|
|
||
|
# checks
|
||
|
pytestCheckHook,
|
||
|
pytest-mock,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "qstylizer";
|
||
|
version = "0.2.3";
|
||
|
pyproject = true;
|
||
|
|
||
|
disabled = pythonOlder "3.7";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "blambright";
|
||
|
repo = "qstylizer";
|
||
|
rev = "refs/tags/${version}";
|
||
|
hash = "sha256-eZVBUGQxa2cr0O48iKWNTqM9E5ZAsiT1WfXjdYdxIdg=";
|
||
|
};
|
||
|
|
||
|
PBR_VERSION = version;
|
||
|
|
||
|
build-system = [
|
||
|
pbr
|
||
|
setuptools
|
||
|
];
|
||
|
|
||
|
dependencies = [
|
||
|
inflection
|
||
|
tinycss2
|
||
|
];
|
||
|
|
||
|
nativeCheckInputs = [
|
||
|
pytestCheckHook
|
||
|
pytest-mock
|
||
|
];
|
||
|
|
||
|
pythonImportsCheck = [ "qstylizer" ];
|
||
|
|
||
|
meta = {
|
||
|
description = "Qt stylesheet generation utility for PyQt/PySide";
|
||
|
homepage = "https://github.com/blambright/qstylizer";
|
||
|
license = lib.licenses.mit;
|
||
|
maintainers = with lib.maintainers; [ drewrisinger ];
|
||
|
};
|
||
|
}
|