Files
nixpkgs/pkgs/development/python-modules/starkbank-ecdsa/default.nix
Yueh-Shun Li 624897829b treewide: modernize Python package pytest flags
Use `(enabled|disabled)(TestPaths|TestMarks|Tests)` and `pytestFlags`
instead of the `__structuredAttrs`-incompatible `pytestFlagsArray`.
2025-07-15 03:00:08 +08:00

46 lines
808 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";
tag = "v${version}";
hash = "sha256-HarlCDE2qOLbyhMLOE++bTC+7srJqwmohM6vrJkJ/gc=";
};
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
cd tests
'';
enabledTestPaths = [
"*.py"
];
pytestFlags = [
"-v"
];
pythonImportsCheck = [ "ellipticcurve" ];
meta = with lib; {
description = "Python ECDSA library";
homepage = "https://github.com/starkbank/ecdsa-python";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}