From 70a30de1cfc78ec80b109aff8561c6ef926149b7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 10 Mar 2022 23:48:01 +0100 Subject: [PATCH] python3Packages.traitsui: add pythonImportsCheck --- .../python-modules/traitsui/default.nix | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/traitsui/default.nix b/pkgs/development/python-modules/traitsui/default.nix index 97471d076b69..d09a855bd32a 100644 --- a/pkgs/development/python-modules/traitsui/default.nix +++ b/pkgs/development/python-modules/traitsui/default.nix @@ -1,24 +1,39 @@ -{ lib, fetchPypi, buildPythonPackage -, traits, pyface, six +{ lib +, fetchPypi +, buildPythonPackage +, traits +, pyface +, pythonOlder }: buildPythonPackage rec { pname = "traitsui"; version = "7.3.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-ZkSz+PYColdgcC3IchuneM51lFBAk68UpIadI56GdPQ="; + hash = "sha256-ZkSz+PYColdgcC3IchuneM51lFBAk68UpIadI56GdPQ="; }; - propagatedBuildInputs = [ traits pyface six ]; + propagatedBuildInputs = [ + traits + pyface + ]; - doCheck = false; # Needs X server + # Needs X server + doCheck = false; + + pythonImportsCheck = [ + "traitsui" + ]; meta = with lib; { description = "Traits-capable windowing framework"; homepage = "https://github.com/enthought/traitsui"; - maintainers = with maintainers; [ knedlsepp ]; license = licenses.bsdOriginal; + maintainers = with maintainers; [ knedlsepp ]; }; }