python311Packages.sigstore: init at 2.1.0

Packaged as a dependency for aiogithubapi.
This commit is contained in:
Martin Weinelt 2023-12-17 21:41:15 +01:00
parent 66eb1ebea9
commit 0b7ce9c369
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 76 additions and 0 deletions

View file

@ -0,0 +1,74 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, flit-core
# dependencies
, appdirs
, cryptography
, id
, importlib-resources
, pydantic
, pyjwt
, pyopenssl
, requests
, rich
, securesystemslib
, sigstore-protobuf-specs
, sigstore-rekor-types
, tuf
# tests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "sigstore-python";
version = "2.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "sigstore";
repo = "sigstore-python";
rev = "v${version}";
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";
changelog = "https://github.com/sigstore/sigstore-python/blob/${src.rev}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}

View file

@ -13108,6 +13108,8 @@ self: super: with self; {
sigrok = callPackage ../development/python-modules/sigrok { }; sigrok = callPackage ../development/python-modules/sigrok { };
sigstore = callPackage ../development/python-modules/sigstore { };
sigstore-protobuf-specs = callPackage ../development/python-modules/sigstore-protobuf-specs { }; sigstore-protobuf-specs = callPackage ../development/python-modules/sigstore-protobuf-specs { };
sigstore-rekor-types = callPackage ../development/python-modules/sigstore-rekor-types { }; sigstore-rekor-types = callPackage ../development/python-modules/sigstore-rekor-types { };