Diff: https://github.com/altcha-org/altcha-lib-py/compare/refs/tags/v0.1.9...refs/tags/v0.2.0
34 lines
727 B
Nix
34 lines
727 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "altcha";
|
|
version = "0.2.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "altcha-org";
|
|
repo = "altcha-lib-py";
|
|
tag = "v${version}";
|
|
hash = "sha256-QZSj24dyfdgAeHSCWcmWKr35VWjGM3kQyh9o77bHOgY=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
pythonImportsCheck = [ "altcha" ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = {
|
|
description = "Lightweight Python library for creating and verifying ALTCHA challenges";
|
|
homepage = "https://github.com/altcha-org/altcha-lib-py";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ erictapen ];
|
|
};
|
|
}
|