mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
0e3349d548
Signed-off-by: lucasew <lucas59356@gmail.com>
40 lines
922 B
Nix
40 lines
922 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pyqt5
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "qasync";
|
|
version = "0.24.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CabbageDevelopment";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-DAzmobw+c29Pt/URGO3bWXHBxgu9bDHhdTUBE9QJDe4=";
|
|
};
|
|
|
|
postPatch = ''
|
|
rm qasync/_windows.py # Ignoring it is not taking effect and it will not be used on Linux
|
|
'';
|
|
|
|
propagatedBuildInputs = [ pyqt5 ];
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "qasync" ];
|
|
|
|
disabledTestPaths = [
|
|
"tests/test_qeventloop.py"
|
|
];
|
|
|
|
meta = {
|
|
description = "Allows coroutines to be used in PyQt/PySide applications by providing an implementation of the PEP 3156 event-loop";
|
|
homepage = "https://github.com/CabbageDevelopment/qasync";
|
|
license = [ lib.licenses.bsd2 ];
|
|
maintainers = [ lib.maintainers.lucasew ];
|
|
};
|
|
}
|