1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
48 lines
916 B
Nix
48 lines
916 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cybox,
|
|
distutils,
|
|
fetchFromGitHub,
|
|
lxml,
|
|
mixbox,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "maec";
|
|
version = "4.1.0.17";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MAECProject";
|
|
repo = "python-maec";
|
|
tag = "v${version}";
|
|
hash = "sha256-I2Ov2AQiC9D8ivHqn7owcTsNS7Kw+CWVyijK3VO52Og=";
|
|
};
|
|
|
|
build-system = [
|
|
distutils
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
cybox
|
|
lxml
|
|
mixbox
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "maec" ];
|
|
|
|
meta = {
|
|
description = "Library for parsing, manipulating, and generating MAEC content";
|
|
homepage = "https://github.com/MAECProject/python-maec/";
|
|
changelog = "https://github.com/MAECProject/python-maec/blob/${src.rev}/CHANGES.txt";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|