depot/third_party/nixpkgs/pkgs/development/python-modules/enaml/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

74 lines
1.3 KiB
Nix

{ lib
, atom
, buildPythonPackage
, bytecode
, cppy
, fetchFromGitHub
, kiwisolver
, pegen
, ply
, qtpy
, setuptools
, setuptools-scm
, pythonOlder
, sip_4
}:
buildPythonPackage rec {
pname = "enaml";
version = "0.16.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "nucleic";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-0W5FWGS4vu5+O6/C4El60QDsRNj+P4xGQ62NdkfJd5I=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
atom
bytecode
cppy
kiwisolver
pegen
ply
qtpy
sip_4
];
# qt bindings cannot be found during tests
doCheck = false;
pythonImportsCheck = [
"enaml"
"enaml.applib"
"enaml.core"
"enaml.core.parser"
"enaml.layout"
# qt bindings cannot be found during checking
#"enaml.qt"
#"enaml.qt.docking"
"enaml.scintilla"
"enaml.stdlib"
"enaml.widgets"
"enaml.workbench"
];
meta = with lib; {
description = "Declarative User Interfaces for Python";
homepage = "https://github.com/nucleic/enaml";
changelog = "https://github.com/nucleic/enaml/releases/tag/${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ raboof ];
};
}