Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 30 additions & 6 deletions pkgs/development/python-modules/plyara/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
fetchFromGitHub,
setuptools,
ply,

pytestCheckHook,
pycodestyle,
pydocstyle,
pyflakes,
coverage,
}:

buildPythonPackage rec {
Expand All @@ -14,9 +20,11 @@ buildPythonPackage rec {

disabled = pythonOlder "3.10"; # https://github.com/plyara/plyara: "Plyara requires Python 3.10+"

src = fetchPypi {
inherit pname version;
hash = "sha256-zmpb5r3BcveLsQ0uIgQJx2vUaz2p/0PlO76E0e7elwA=";
src = fetchFromGitHub {
owner = "plyara";
repo = "plyara";
tag = "v${version}";
hash = "sha256-WaQgqx003it+D0AGDxV6aSKO89F2iR9d8L4zvHyd0iQ=";
};

build-system = [
Expand All @@ -31,11 +39,27 @@ buildPythonPackage rec {
"plyara"
];

nativeCheckInputs = [
pytestCheckHook
pycodestyle
pydocstyle
pyflakes
coverage
];

disabledTests = [
# touches network
"test_third_party_repositories"
];

meta = {
description = "Parse YARA rules";
homepage = "https://pypi.org/project/plyara/";
homepage = "https://github.com/plyara/plyara";
changelog = "https://github.com/plyara/plyara/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ _13621 ];
maintainers = with lib.maintainers; [
_13621
ivyfanchiang
];
};
}