Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pycryptodome,
6 pycryptodomex,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "unicrypto";
12 version = "0.0.12";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "skelsec";
17 repo = "unicrypto";
18 tag = version;
19 hash = "sha256-RYwovFMalBNDPDEVjQ/8/N7DkOMiyeEQ5ESdgCK8RW8=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [
25 pycryptodome
26 pycryptodomex
27 ];
28
29 # Module has no tests
30 doCheck = false;
31
32 pythonImportsCheck = [ "unicrypto" ];
33
34 meta = {
35 description = "Unified interface for cryptographic libraries";
36 homepage = "https://github.com/skelsec/unicrypto";
37 changelog = "https://github.com/skelsec/unicrypto/releases/tag/${src.tag}";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ fab ];
40 };
41}