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
982 B
Nix
50 lines
982 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
pytestCheckHook,
|
|
jinja2,
|
|
multidict,
|
|
poetry-core,
|
|
pydantic,
|
|
pyyaml,
|
|
wtforms,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "beanhub-forms";
|
|
version = "0.1.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LaunchPlatform";
|
|
repo = "beanhub-forms";
|
|
tag = version;
|
|
hash = "sha256-313c+ENmTe1LyfEiMXNB9AUoGx3Yv/1D0T3HnAbd+Zw=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
jinja2
|
|
pydantic
|
|
pyyaml
|
|
wtforms
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
multidict
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "beanhub_forms" ];
|
|
|
|
meta = {
|
|
description = "Library for generating and processing BeanHub's custom forms";
|
|
homepage = "https://github.com/LaunchPlatform/beanhub-forms/";
|
|
changelog = "https://github.com/LaunchPlatform/beanhub-forms/releases/tag/${version}";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ fangpen ];
|
|
};
|
|
}
|