nixpkgs/pkgs/development/python-modules/enaml/default.nix
Martin Weinelt 8056f9250c
treewide: remove redundant SETUPTOOLS_SCM_PRETEND_VERSION usage
The setuptools-scm packages gained a setup hook, that sets it to the
derivation version automatically, so setting it to that manually has
become redundant.

This also affects downstream consumers of setuptools-scm, like hatch-vcs
or flit-scm.
2023-12-20 20:16:39 +01:00

73 lines
1.3 KiB
Nix

{ lib
, atom
, buildPythonPackage
, bytecode
, cppy
, fetchFromGitHub
, kiwisolver
, pegen
, ply
, qtpy
, setuptools
, setuptools-scm
, pythonOlder
, sip
}:
buildPythonPackage rec {
pname = "enaml";
version = "0.17.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "nucleic";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-DYLDQ9QwdK/a8eY0bFX31UNgxm8FUOaeNAnisFcyFNI=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
atom
bytecode
cppy
kiwisolver
pegen
ply
qtpy
sip
];
# 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 ];
};
}