mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
50 lines
1,013 B
Nix
50 lines
1,013 B
Nix
{
|
|
lib,
|
|
asn1crypto,
|
|
attrs,
|
|
buildPythonPackage,
|
|
cryptodatahub,
|
|
fetchPypi,
|
|
python-dateutil,
|
|
pythonOlder,
|
|
setuptools,
|
|
urllib3,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cryptoparser";
|
|
version = "1.0.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-bEvhMVcm9sXlfhxUD2K4N10nusgxpGYFJQLtJE1/qok=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace requirements.txt \
|
|
--replace-fail "attrs>=20.3.0,<22.0.1" "attrs>=20.3.0"
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
asn1crypto
|
|
attrs
|
|
cryptodatahub
|
|
python-dateutil
|
|
urllib3
|
|
];
|
|
|
|
pythonImportsCheck = [ "cryptoparser" ];
|
|
|
|
meta = with lib; {
|
|
description = "Security protocol parser and generator";
|
|
homepage = "https://gitlab.com/coroner/cryptoparser";
|
|
changelog = "https://gitlab.com/coroner/cryptoparser/-/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ kranzes ];
|
|
};
|
|
}
|