depot/third_party/nixpkgs/pkgs/development/python-modules/starkbank-ecdsa/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

42 lines
794 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "starkbank-ecdsa";
version = "2.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "starkbank";
repo = "ecdsa-python";
rev = "refs/tags/v${version}";
hash = "sha256-HarlCDE2qOLbyhMLOE++bTC+7srJqwmohM6vrJkJ/gc=";
};
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
cd tests
'';
pytestFlagsArray = [
"-v"
"*.py"
];
pythonImportsCheck = [ "ellipticcurve" ];
meta = with lib; {
description = "Python ECDSA library";
homepage = "https://github.com/starkbank/ecdsa-python";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}