2023-12-17 21:41:15 +01:00
|
|
|
{ lib
|
2024-01-19 09:13:45 +01:00
|
|
|
, appdirs
|
2023-12-17 21:41:15 +01:00
|
|
|
, buildPythonPackage
|
2024-01-19 09:13:45 +01:00
|
|
|
, cryptography
|
2023-12-17 21:41:15 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, flit-core
|
|
|
|
, id
|
|
|
|
, importlib-resources
|
|
|
|
, pydantic
|
|
|
|
, pyjwt
|
|
|
|
, pyopenssl
|
2024-01-19 09:13:45 +01:00
|
|
|
, pytestCheckHook
|
2023-12-17 21:41:15 +01:00
|
|
|
, requests
|
|
|
|
, rich
|
|
|
|
, securesystemslib
|
|
|
|
, sigstore-protobuf-specs
|
|
|
|
, sigstore-rekor-types
|
|
|
|
, tuf
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sigstore-python";
|
|
|
|
version = "2.1.0";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sigstore";
|
|
|
|
repo = "sigstore-python";
|
2024-01-19 09:13:45 +01:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-12-17 21:41:15 +01:00
|
|
|
hash = "sha256-WH6Pme8ZbfW5xqBT056eVJ3HZP1D/lAULtyN6k0uMaA=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
appdirs
|
|
|
|
cryptography
|
|
|
|
id
|
|
|
|
importlib-resources
|
|
|
|
pydantic
|
|
|
|
pyjwt
|
|
|
|
pyopenssl
|
|
|
|
requests
|
|
|
|
rich
|
|
|
|
securesystemslib
|
|
|
|
sigstore-protobuf-specs
|
|
|
|
sigstore-rekor-types
|
|
|
|
tuf
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"sigstore"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A codesigning tool for Python packages";
|
|
|
|
homepage = "https://github.com/sigstore/sigstore-python";
|
2024-01-19 09:13:45 +01:00
|
|
|
changelog = "https://github.com/sigstore/sigstore-python/blob/${version}/CHANGELOG.md";
|
2023-12-17 21:41:15 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|