python312Packages.beartype: improve (#372419)
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user