nixpkgs/pkgs/development/python-modules/superqt/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

46 lines
890 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools-scm
, pyqt5
, qtpy
, typing-extensions
, pytestCheckHook
, pygments
}:
buildPythonPackage rec {
pname = "superqt";
version = "0.3.8";
format = "pyproject";
src = fetchFromGitHub {
owner = "napari";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-zEMG2zscGDlRxtLn/lUTEjZBPabcwzMcj/kMcy3yOs8=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
pyqt5
qtpy
typing-extensions
pygments
];
nativeCheckInputs = [ pytestCheckHook ];
doCheck = false; # Segfaults...
pythonImportsCheck = [ "superqt" ];
meta = with lib; {
description = "Missing widgets and components for Qt-python (napari/superqt)";
homepage = "https://github.com/napari/superqt";
license = licenses.bsd3;
maintainers = with maintainers; [ SomeoneSerge ];
};
}