eb862d7d4f
This is the first version using setuptools-scm. Because we don't keep enough git metadata to determine the version, we use SETUPTOOLS_SCM_PRETEND_VERSION instead. https://github.com/NixOS/nixpkgs/issues/41136
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, setuptools-scm
|
|
, atom
|
|
, ply
|
|
, kiwisolver
|
|
, qtpy
|
|
, sip_4
|
|
, cppy
|
|
, bytecode
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "enaml";
|
|
version = "0.15.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nucleic";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-xSMgT8VooDS5kvf4BCcVbv/MNfRDTVnPKU3Ou+/Gq7I=";
|
|
};
|
|
|
|
# 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"
|
|
];
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
propagatedBuildInputs = [
|
|
atom
|
|
ply
|
|
kiwisolver
|
|
qtpy
|
|
sip_4
|
|
cppy
|
|
bytecode
|
|
];
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/nucleic/enaml";
|
|
description = "Declarative User Interfaces for Python";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ raboof ];
|
|
};
|
|
}
|