2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, certifi
|
|
|
|
, cryptography
|
2023-08-22 20:05:09 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, hatch-fancy-pypi-readme
|
|
|
|
, hatch-vcs
|
|
|
|
, hatchling
|
2023-07-15 17:15:38 +00:00
|
|
|
, pretend
|
|
|
|
, pyopenssl
|
2023-08-22 20:05:09 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2023-07-15 17:15:38 +00:00
|
|
|
, twisted
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pem";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "23.1.0";
|
|
|
|
format = "pyproject";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hynek";
|
|
|
|
repo = pname;
|
2023-08-22 20:05:09 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-rVYlnvISGugh9qvf3mdrIyELmeOUU4g6291HeoMkoQc=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
hatch-fancy-pypi-readme
|
|
|
|
hatch-vcs
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
certifi
|
|
|
|
cryptography
|
|
|
|
pretend
|
|
|
|
pyopenssl
|
|
|
|
pytestCheckHook
|
|
|
|
twisted
|
2023-08-22 20:05:09 +00:00
|
|
|
] ++ twisted.optional-dependencies.tls;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pem"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-08-22 20:05:09 +00:00
|
|
|
description = "Easy PEM file parsing in Python";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://pem.readthedocs.io/";
|
2023-08-22 20:05:09 +00:00
|
|
|
changelog = "https://github.com/hynek/pem/blob/${version}/CHANGELOG.md";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nyanotech ];
|
|
|
|
};
|
|
|
|
}
|