mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
36 lines
883 B
Nix
36 lines
883 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, wheel
|
|
, setuptools
|
|
, setuptools-scm
|
|
, pytestCheckHook
|
|
, pytest-mypy-plugins
|
|
, pytest-cov
|
|
, pytest
|
|
, mypy
|
|
, typing-extensions
|
|
}: buildPythonPackage rec
|
|
{
|
|
pname = "psygnal";
|
|
version = "0.2.0";
|
|
src = fetchFromGitHub {
|
|
owner = "tlambert03";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-SiG2ywNEw3aNrRXyEMFTnvHKtKowO8yqoCaNI8PT4/Y=";
|
|
};
|
|
buildInputs = [ setuptools-scm ];
|
|
propagatedBuildInputs = [ typing-extensions ];
|
|
checkInputs = [ pytestCheckHook pytest-cov pytest-mypy-plugins ];
|
|
doCheck = false; # mypy checks are failing
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
meta = with lib; {
|
|
description = "Pure python implementation of Qt Signals";
|
|
homepage = "https://github.com/tlambert03/psygnal";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ SomeoneSerge ];
|
|
};
|
|
}
|