2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
2023-03-24 00:07:29 +00:00
|
|
|
, wxPython_4_2
|
2022-05-18 14:49:53 +00:00
|
|
|
, python
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "humblewx";
|
|
|
|
version = "0.2.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thetimelineproj";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0fv8gwlbcj000qq34inbwgxf0xgibs590dsyqnw0mmyb7f1iq210";
|
|
|
|
};
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
propagatedBuildInputs = [ wxPython_4_2 ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
for i in examples/*; do
|
2022-05-18 14:49:53 +00:00
|
|
|
${python.interpreter} $i
|
2021-05-20 23:08:51 +00:00
|
|
|
done
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Unable to access the X Display, is $DISPLAY set properly?
|
|
|
|
# would have to use nixos module tests, but it is not worth it
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "humblewx" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/thetimelineproj/humblewx";
|
|
|
|
description = "Library that simplifies creating user interfaces with wxPython";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
maintainers = with lib.maintainers; [ davidak ];
|
|
|
|
};
|
|
|
|
}
|