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
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
django,
|
|
faker,
|
|
fetchPypi,
|
|
flask,
|
|
flask-sqlalchemy,
|
|
mongoengine,
|
|
pytestCheckHook,
|
|
mongomock,
|
|
sqlalchemy,
|
|
sqlalchemy-utils,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "factory-boy";
|
|
version = "3.3.3";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "factory_boy";
|
|
inherit version;
|
|
hash = "sha256-hmhi0iYSjfrH8rQWAofomdr1TyYSd4Mn3QPQ4ssePQM=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ faker ];
|
|
|
|
nativeCheckInputs = [
|
|
django
|
|
flask
|
|
flask-sqlalchemy
|
|
mongoengine
|
|
mongomock
|
|
pytestCheckHook
|
|
sqlalchemy
|
|
sqlalchemy-utils
|
|
];
|
|
|
|
disabledTests = [
|
|
# Test checks for MongoDB requires an a running DB
|
|
"MongoEngineTestCase"
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# incompatible with latest flask-sqlalchemy
|
|
"examples/flask_alchemy/test_demoapp.py"
|
|
];
|
|
|
|
pythonImportsCheck = [ "factory" ];
|
|
|
|
meta = {
|
|
description = "Python package to create factories for complex objects";
|
|
homepage = "https://github.com/rbarrois/factory_boy";
|
|
changelog = "https://github.com/FactoryBoy/factory_boy/blob/${version}/docs/changelog.rst";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|