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
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lxml,
|
|
ordered-set,
|
|
pytestCheckHook,
|
|
python-dateutil,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mixbox";
|
|
version = "1.0.5";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CybOXProject";
|
|
repo = "mixbox";
|
|
tag = "v${version}";
|
|
hash = "sha256-qK3cKOf0s345M1pVFro5NFhDj4lch12UegOY1ZUEOBQ=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
lxml
|
|
ordered-set
|
|
python-dateutil
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "mixbox" ];
|
|
|
|
enabledTestPaths = [ "test/*.py" ];
|
|
|
|
disabledTests = [
|
|
# Tests are out-dated
|
|
"test_serialize_datetime_as_date"
|
|
"test_preferred_prefixes"
|
|
];
|
|
|
|
meta = {
|
|
description = "Library of common code leveraged by cybox, maec and stix";
|
|
homepage = "https://github.com/CybOXProject/mixbox";
|
|
changelog = "https://github.com/CybOXProject/mixbox/releases/tag/v${version}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|