Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / qtawesome / default.nix
blob7b4bcb01384f77cc697446e9d1082eb8a81625ca
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pyqt5
5 , pytestCheckHook
6 , pythonOlder
7 , qtpy
8 }:
10 buildPythonPackage rec {
11   pname = "qtawesome";
12   version = "1.2.3";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "spyder-ide";
19     repo = pname;
20     rev = "refs/tags/v${version}";
21     hash = "sha256-cndmxdo00TLq1Cy66IFwcT5CKBavaFAfknkpLZCYvUQ=";
22   };
24   propagatedBuildInputs = [
25     pyqt5
26     qtpy
27   ];
29   nativeCheckInputs = [
30     pytestCheckHook
31   ];
33   # Requires https://github.com/boylea/qtbot which is unmaintained
34   doCheck = false;
36   pythonImportsCheck = [
37     "qtawesome"
38   ];
40   meta = with lib; {
41     description = "Iconic fonts in PyQt and PySide applications";
42     homepage = "https://github.com/spyder-ide/qtawesome";
43     changelog = "https://github.com/spyder-ide/qtawesome/blob/v${version}/CHANGELOG.md";
44     license = licenses.mit;
45     maintainers = with maintainers; [ ];
46     platforms = platforms.linux; # fails on Darwin
47   };