nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 certifi,
5 cryptography,
6 fetchFromGitHub,
7 hatch-fancy-pypi-readme,
8 hatch-vcs,
9 hatchling,
10 pretend,
11 pyopenssl,
12 pytestCheckHook,
13 twisted,
14}:
15
16buildPythonPackage rec {
17 pname = "pem";
18 version = "23.1.0";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "hynek";
23 repo = "pem";
24 tag = version;
25 hash = "sha256-rVYlnvISGugh9qvf3mdrIyELmeOUU4g6291HeoMkoQc=";
26 };
27
28 nativeBuildInputs = [
29 hatchling
30 hatch-fancy-pypi-readme
31 hatch-vcs
32 ];
33
34 nativeCheckInputs = [
35 certifi
36 cryptography
37 pretend
38 pyopenssl
39 pytestCheckHook
40 twisted
41 ]
42 ++ twisted.optional-dependencies.tls;
43
44 pythonImportsCheck = [ "pem" ];
45
46 meta = {
47 description = "Easy PEM file parsing in Python";
48 homepage = "https://pem.readthedocs.io/";
49 changelog = "https://github.com/hynek/pem/blob/${version}/CHANGELOG.md";
50 license = lib.licenses.mit;
51 maintainers = with lib.maintainers; [ nyanotech ];
52 };
53}