nixpkgs/pkgs/development/python-modules/sigstore/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

69 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
2024-01-19 09:13:45 +01:00
, appdirs
, buildPythonPackage
2024-01-19 09:13:45 +01:00
, cryptography
, fetchFromGitHub
, flit-core
, id
, importlib-resources
, pydantic
, pyjwt
, pyopenssl
2024-01-19 09:13:45 +01:00
, pytestCheckHook
, 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}";
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";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}