Files
nixpkgs/pkgs/development/python-modules/cose/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

45 lines
789 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# Python deps
attrs,
cbor2,
certvalidator,
cryptography,
ecdsa,
setuptools,
}:
buildPythonPackage rec {
pname = "cose";
version = "1.1.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "TimothyClaeys";
repo = "pycose";
rev = "v${version}";
hash = "sha256-HgGGmOvBadLDTAEkUY6aLC7r0aGKGfQv/Zyl8Orh8U0=";
};
propagatedBuildInputs = [
attrs
cbor2
certvalidator
cryptography
ecdsa
setuptools
];
pythonImportsCheck = [ "pycose" ];
meta = {
description = "Python implementation of the COSE specification";
homepage = "https://github.com/TimothyClaeys/pycose";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ t4ccer ];
};
}