From 0ec13035f6f28b5ce089cb5a682750cab6a7dd9f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 28 May 2022 22:58:20 +0200 Subject: [PATCH] python310Packages.pynisher: add pythonImportsCheck --- .../python-modules/pynisher/default.nix | 28 ++++++++++++++----- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pynisher/default.nix b/pkgs/development/python-modules/pynisher/default.nix index a908945fad5d..942192c57dc5 100644 --- a/pkgs/development/python-modules/pynisher/default.nix +++ b/pkgs/development/python-modules/pynisher/default.nix @@ -1,25 +1,39 @@ -{ lib, buildPythonPackage, fetchPypi, psutil, docutils }: +{ lib +, buildPythonPackage +, docutils +, fetchPypi +, psutil +, pythonOlder +}: buildPythonPackage rec { pname = "pynisher"; version = "0.6.4"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "111d91aad471375c0509a912415ff90053ef909100facf412511383af107c124"; + hash = "sha256-ER2RqtRxN1wFCakSQV/5AFPvkJEA+s9BJRE4OvEHwSQ="; }; - propagatedBuildInputs = [ psutil docutils ]; + propagatedBuildInputs = [ + psutil + docutils + ]; - # no tests in the Pypi archive + # No tests in the Pypi archive doCheck = false; + pythonImportsCheck = [ + "pynisher" + ]; + meta = with lib; { - description = "The pynisher is a little module intended to limit a functions resources."; + description = "Module intended to limit a functions resources"; homepage = "https://github.com/sfalkner/pynisher"; license = licenses.mit; maintainers = with maintainers; [ psyanticy ]; }; - } -