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

63 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
, setuptools-scm
, libxcrypt
, numpy
, qt6
, qtpy
, pyqt6
, pytestCheckHook
, pytest-cov
}:
buildPythonPackage rec {
pname = "echo";
version = "0.8.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "glue-viz";
repo = pname;
rev = "v${version}";
sha256 = "sha256-0FmUA7kOFSRZXwbj8d7asujBPOjE2pFhu6TDNSGD4r0=";
};
nativeBuildInputs = [ setuptools setuptools-scm qt6.wrapQtAppsHook ];
buildInputs = lib.optionals (pythonOlder "3.9") [
libxcrypt
];
propagatedBuildInputs = [
qt6.qtconnectivity
qt6.qtbase
qt6.qttools
pyqt6
numpy
qtpy
];
# collecting ... qt.qpa.xcb: could not connect to display
# qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
doCheck = false;
nativeCheckInputs = [
pytestCheckHook
pytest-cov
];
pythonImportsCheck = [ "echo" ];
meta = with lib; {
homepage = "https://github.com/glue-viz/echo";
description = "Callback Properties in Python";
license = licenses.mit;
maintainers = with maintainers; [ ifurther ];
};
}