python310Packages.dnfile: init at 0.12.0
This commit is contained in:
parent
e6a8af3e6b
commit
a3e65db44a
2 changed files with 50 additions and 0 deletions
48
pkgs/development/python-modules/dnfile/default.nix
Normal file
48
pkgs/development/python-modules/dnfile/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pefile
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "dnfile";
|
||||||
|
version = "0.12.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "malwarefrank";
|
||||||
|
repo = pname;
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-r3DupEyMEXOFeSDo9k0LmGM/TGMbbpVW7zCoUA4oG8Y=";
|
||||||
|
fetchSubmodules = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "pytest-runner" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
pefile
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"dnfile"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Module to parse .NET executable files";
|
||||||
|
homepage = "hhttps://github.com/malwarefrank/dnfile";
|
||||||
|
changelog = "https://github.com/malwarefrank/dnfile/blob/v${version}/HISTORY.rst";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -2678,6 +2678,8 @@ self: super: with self; {
|
||||||
|
|
||||||
dnachisel = callPackage ../development/python-modules/dnachisel { };
|
dnachisel = callPackage ../development/python-modules/dnachisel { };
|
||||||
|
|
||||||
|
dnfile = callPackage ../development/python-modules/dnfile { };
|
||||||
|
|
||||||
dnslib = callPackage ../development/python-modules/dnslib { };
|
dnslib = callPackage ../development/python-modules/dnslib { };
|
||||||
|
|
||||||
dnspython = callPackage ../development/python-modules/dnspython { };
|
dnspython = callPackage ../development/python-modules/dnspython { };
|
||||||
|
|
Loading…
Reference in a new issue