From 9c7de13a7302ea5b85b9112940ffd5ecda94f0f1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 14 Feb 2022 09:14:38 +0100 Subject: [PATCH] python3Packages.puremagic: limit support for Python releases --- .../development/python-modules/puremagic/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/puremagic/default.nix b/pkgs/development/python-modules/puremagic/default.nix index 1695d36fcb44..e5d91f38fa2f 100644 --- a/pkgs/development/python-modules/puremagic/default.nix +++ b/pkgs/development/python-modules/puremagic/default.nix @@ -1,11 +1,15 @@ { lib , buildPythonPackage , fetchPypi +, pythonOlder }: buildPythonPackage rec { pname = "puremagic"; version = "1.12"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; @@ -15,12 +19,14 @@ buildPythonPackage rec { # test data not included on pypi doCheck = false; - pythonImportsCheck = [ "puremagic" ]; + pythonImportsCheck = [ + "puremagic" + ]; meta = with lib; { - description = "Pure python implementation of magic file detection"; - license = licenses.mit; + description = "Implementation of magic file detection"; homepage = "https://github.com/cdgriffith/puremagic"; + license = licenses.mit; maintainers = with maintainers; [ globin ]; }; }