diff --git a/pkgs/development/python-modules/crossandra/default.nix b/pkgs/development/python-modules/crossandra/default.nix index 6c32ad924276..22f6c60a4126 100644 --- a/pkgs/development/python-modules/crossandra/default.nix +++ b/pkgs/development/python-modules/crossandra/default.nix @@ -2,35 +2,34 @@ lib, buildPythonPackage, fetchFromGitHub, - setuptools, + hatchling, + hatch-mypyc, + pytestCheckHook, result, - mypy, }: buildPythonPackage (finalAttrs: { pname = "crossandra"; - version = "2.2.1"; + version = "2.3.0"; pyproject = true; src = fetchFromGitHub { owner = "trag1c"; repo = "crossandra"; tag = finalAttrs.version; - hash = "sha256-/JhrjXRH7Rs2bUil9HRneBC9wlVYEyfwivjzb+eyRv8="; + hash = "sha256-xKMySbt+Bf+6BGyIKsmYHTZTl25HxlG8hY/HuUtDjSM="; }; build-system = [ - setuptools - mypy + hatchling + hatch-mypyc ]; + dependencies = [ result ]; + nativeCheckInputs = [ pytestCheckHook ]; + pythonImportsCheck = [ "crossandra" ]; - prePatch = '' - # pythonRelaxDepsHook did not work - substituteInPlace pyproject.toml \ - --replace-fail "result ~= 0.9.0" "result >= 0.9.0" - ''; meta = { changelog = "https://github.com/trag1c/crossandra/blob/${finalAttrs.src.tag}/CHANGELOG.md";