diff options
author | Gaetan Lepage <gaetan@glepage.com> | 2023-10-24 10:13:14 +0200 |
---|---|---|
committer | Gaetan Lepage <gaetan@glepage.com> | 2023-10-24 19:21:31 +0200 |
commit | 2e54e0c0caae93cd550bc1714fde7351c7db06c9 (patch) | |
tree | 8fe0a6a55146818c4f60fad6d780fbec19df5b5a /pkgs/development/python-modules | |
parent | d4e8ce40f0c04b43d76475c7d7206716c5eeb8ca (diff) | |
download | nixpkgs-2e54e0c0caae93cd550bc1714fde7351c7db06c9.tar nixpkgs-2e54e0c0caae93cd550bc1714fde7351c7db06c9.tar.gz nixpkgs-2e54e0c0caae93cd550bc1714fde7351c7db06c9.tar.bz2 nixpkgs-2e54e0c0caae93cd550bc1714fde7351c7db06c9.tar.lz nixpkgs-2e54e0c0caae93cd550bc1714fde7351c7db06c9.tar.xz nixpkgs-2e54e0c0caae93cd550bc1714fde7351c7db06c9.tar.zst nixpkgs-2e54e0c0caae93cd550bc1714fde7351c7db06c9.zip |
python311Packages.weasel: init at 0.3.3
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/weasel/default.nix | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/weasel/default.nix b/pkgs/development/python-modules/weasel/default.nix new file mode 100644 index 00000000000..6b1ffcb31f5 --- /dev/null +++ b/pkgs/development/python-modules/weasel/default.nix @@ -0,0 +1,83 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, setuptools +, wheel +, black +, cloudpathlib +, confection +, isort +, mypy +, packaging +, pre-commit +, pydantic +, pytest +, requests +, ruff +, smart-open +, srsly +, typer +, types-requests +, types-setuptools +, wasabi +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "weasel"; + version = "0.3.3"; + pyproject = true; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "explosion"; + repo = "weasel"; + rev = "refs/tags/v${version}"; + hash = "sha256-I8Omrez1wfAbCmr9hivqKN2fNgnFQRGm8OP7lb7YClk="; + }; + + nativeBuildInputs = [ + setuptools + wheel + ]; + + propagatedBuildInputs = [ + black + cloudpathlib + confection + isort + mypy + packaging + pre-commit + pydantic + pytest + requests + ruff + smart-open + srsly + typer + types-requests + types-setuptools + wasabi + ]; + + pythonImportsCheck = [ "weasel" ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + disabledTests = [ + # This test requires internet access + "test_project_assets" + ]; + + meta = with lib; { + description = "Weasel: A small and easy workflow system"; + homepage = "https://github.com/explosion/weasel/"; + license = licenses.mit; + maintainers = with maintainers; [ GaetanLepage ]; + }; +} |