nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 attrs,
4 buildPythonPackage,
5 cryptography,
6 fetchFromGitHub,
7 hatch-fancy-pypi-readme,
8 hatch-vcs,
9 hatchling,
10 idna,
11 pyasn1,
12 pyasn1-modules,
13 pytestCheckHook,
14 pyopenssl,
15}:
16
17buildPythonPackage rec {
18 pname = "service-identity";
19 version = "24.2.0";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "pyca";
24 repo = "service-identity";
25 tag = version;
26 hash = "sha256-onxCUWqGVeenLqB5lpUpj3jjxTM61ogXCQOGnDnClT4=";
27 };
28
29 nativeBuildInputs = [
30 hatch-fancy-pypi-readme
31 hatch-vcs
32 hatchling
33 ];
34
35 propagatedBuildInputs = [
36 attrs
37 cryptography
38 idna
39 pyasn1
40 pyasn1-modules
41 ];
42
43 checkInputs = [ pyopenssl ];
44
45 nativeCheckInputs = [ pytestCheckHook ];
46
47 pythonImportsCheck = [ "service_identity" ];
48
49 meta = {
50 description = "Service identity verification for pyOpenSSL";
51 homepage = "https://service-identity.readthedocs.io";
52 changelog = "https://github.com/pyca/service-identity/releases/tag/${version}";
53 license = lib.licenses.mit;
54 maintainers = with lib.maintainers; [ fab ];
55 };
56}