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
50 lines
981 B
Nix
50 lines
981 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
dj-database-url,
|
|
dj-email-url,
|
|
django-cache-url,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
marshmallow,
|
|
pytestCheckHook,
|
|
python-dotenv,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "environs";
|
|
version = "14.5.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sloria";
|
|
repo = "environs";
|
|
tag = version;
|
|
hash = "sha256-g9n4GuVSHB2VourVYlzp3zKO7MnJK4IAakbYV5tM8Uc=";
|
|
};
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
propagatedBuildInputs = [
|
|
marshmallow
|
|
python-dotenv
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
dj-database-url
|
|
dj-email-url
|
|
django-cache-url
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "environs" ];
|
|
|
|
meta = {
|
|
description = "Python modle for environment variable parsing";
|
|
homepage = "https://github.com/sloria/environs";
|
|
changelog = "https://github.com/sloria/environs/blob/${version}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|