depot/third_party/nixpkgs/pkgs/development/python-modules/sigstore/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

74 lines
1.2 KiB
Nix

{ 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; [ ];
};
}