mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
36 lines
865 B
Nix
36 lines
865 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, setuptools-scm
|
|
, pyqt5
|
|
, qtpy
|
|
, typing-extensions
|
|
, pytest
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "superqt";
|
|
version = "0.3.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "napari";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-Ns3AFUL0BReIwTHfrlfXr/2GLtLvT7hfSjjh+r7btcY=";
|
|
};
|
|
format = "pyproject";
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
propagatedBuildInputs = [ pyqt5 qtpy typing-extensions ];
|
|
checkInputs = [ pytestCheckHook pytest ];
|
|
doCheck = false; # Segfaults...
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
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 ];
|
|
};
|
|
}
|