8056f9250c
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.
39 lines
979 B
Nix
39 lines
979 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, setuptools-scm
|
|
, pytestCheckHook
|
|
, typing-extensions
|
|
, qtpy
|
|
, pyside2
|
|
, psygnal
|
|
, docstring-parser
|
|
, napari # a reverse-dependency, for tests
|
|
}: buildPythonPackage rec {
|
|
pname = "magicgui";
|
|
version = "0.5.1";
|
|
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "napari";
|
|
repo = "magicgui";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-fVfBQaaT8/lUGqZRXjOPgvkC01Izb8Sxqn7RCqnW9bo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
propagatedBuildInputs = [ typing-extensions qtpy pyside2 psygnal docstring-parser ];
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
doCheck = false; # Reports "Fatal Python error"
|
|
|
|
passthru.tests = { inherit napari; };
|
|
|
|
meta = with lib; {
|
|
description = "Build GUIs from python functions, using magic. (napari/magicgui)";
|
|
homepage = "https://github.com/napari/magicgui";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ SomeoneSerge ];
|
|
};
|
|
}
|