diff options
Diffstat (limited to 'pkgs/development/python-modules/crossandra/default.nix')
-rw-r--r-- | pkgs/development/python-modules/crossandra/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/crossandra/default.nix b/pkgs/development/python-modules/crossandra/default.nix new file mode 100644 index 0000000000000..f9e2967ff40c8 --- /dev/null +++ b/pkgs/development/python-modules/crossandra/default.nix @@ -0,0 +1,39 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + result, + mypy +}: + +buildPythonPackage rec { + pname = "crossandra"; + version = "2.2.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "trag1c"; + repo = "crossandra"; + rev = "refs/tags/${version}"; + hash = "sha256-/JhrjXRH7Rs2bUil9HRneBC9wlVYEyfwivjzb+eyRv8="; + }; + + build-system = [ setuptools mypy ]; + dependencies = [ result ]; + + pythonImportsCheck = [ "crossandra" ]; + prePatch = '' + # pythonRelaxDepsHook did not work + substituteInPlace pyproject.toml \ + --replace-fail "result ~= 0.9.0" "result >= 0.9.0" + ''; + + meta = with lib; { + changelog = "https://github.com/trag1c/crossandra/blob/${src.rev}/CHANGELOG.md"; + description = "A fast and simple enum/regex-based tokenizer with decent configurability"; + license = licenses.mit; + homepage = "https://trag1c.github.io/crossandra"; + maintainers = with maintainers; [ sigmanificient ]; + }; +} |