Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / psygnal / default.nix
blob36ae22a67b68040f3b6596f313e5d3b85eab3355
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , hatch-vcs
5 , hatchling
6 , mypy-extensions
7 , numpy
8 , pydantic
9 , pytestCheckHook
10 , pythonOlder
11 , toolz
12 , typing-extensions
13 , wrapt
16 buildPythonPackage rec {
17   pname = "psygnal";
18   version = "0.9.5";
19   format = "pyproject";
21   disabled = pythonOlder "3.8";
23   src = fetchFromGitHub {
24     owner = "pyapp-kit";
25     repo = pname;
26     rev = "refs/tags/v${version}";
27     hash = "sha256-eDfGWmTKJrkkzRy1I3wl3WYPCxtPHSRzqAoOiO7QQ9Y=";
28   };
30   SETUPTOOLS_SCM_PRETEND_VERSION = version;
32   buildInputs = [
33     hatch-vcs
34     hatchling
35   ];
37   propagatedBuildInputs = [
38     mypy-extensions
39     typing-extensions
40   ];
42   nativeCheckInputs = [
43     numpy
44     pydantic
45     pytestCheckHook
46     toolz
47     wrapt
48   ];
50   pythonImportsCheck = [
51     "psygnal"
52   ];
54   meta = with lib; {
55     description = "Implementation of Qt Signals";
56     homepage = "https://github.com/pyapp-kit/psygnal";
57     changelog = "https://github.com/pyapp-kit/psygnal/blob/v${version}/CHANGELOG.md";
58     license = licenses.bsd3;
59     maintainers = with maintainers; [ SomeoneSerge ];
60   };