From 69aceb6044a3e91f00976939e98d2313979bfb87 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 9 Jan 2025 17:06:00 +0100 Subject: [PATCH] python312Packages.beartype: improve --- .../python-modules/beartype/default.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/beartype/default.nix b/pkgs/development/python-modules/beartype/default.nix index 0059210356b9..a99da96fff26 100644 --- a/pkgs/development/python-modules/beartype/default.nix +++ b/pkgs/development/python-modules/beartype/default.nix @@ -2,9 +2,9 @@ lib, buildPythonPackage, fetchPypi, + fetchFromGitHub, hatchling, pytestCheckHook, - pythonOlder, typing-extensions, }: @@ -13,11 +13,11 @@ buildPythonPackage rec { version = "0.19.0"; pyproject = true; - disabled = pythonOlder "3.8"; - - src = fetchPypi { - inherit pname version; - hash = "sha256-3kLfwbpcNxD95sMALjvSytI27U0qq+h2NFqwtCNKZXM="; + src = fetchFromGitHub { + owner = "beartype"; + repo = "beartype"; + tag = "v${version}"; + hash = "sha256-uUwqgK7K8x61J7A6S/DGLJljSKABxsbOCsFBDtsameU="; }; build-system = [ hatchling ]; @@ -29,11 +29,11 @@ buildPythonPackage rec { pythonImportsCheck = [ "beartype" ]; - meta = with lib; { + meta = { description = "Fast runtime type checking for Python"; homepage = "https://github.com/beartype/beartype"; changelog = "https://github.com/beartype/beartype/releases/tag/v${version}"; - license = licenses.mit; - maintainers = with maintainers; [ bcdarwin ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ bcdarwin ]; }; }