diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/celery-types/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/celery-types/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/celery-types/default.nix b/nixpkgs/pkgs/development/python-modules/celery-types/default.nix new file mode 100644 index 000000000000..753d7fcc677b --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/celery-types/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildPythonPackage +, fetchPypi +, poetry-core +, pythonOlder +, typing-extensions +}: + +buildPythonPackage rec { + pname = "celery-types"; + version = "0.19.0"; + format = "pyproject"; + + disabled = pythonOlder "3.10"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-1OLUJxsuxG/sCKDxKiU4i7o5HyaJdIW8rPo8UofMI28="; + }; + + patchPhase = '' + substituteInPlace pyproject.toml \ + --replace "poetry.masonry.api" "poetry.core.masonry.api" + ''; + + propagatedBuildInputs = [ + typing-extensions + ]; + + nativeBuildInputs = [ + poetry-core + ]; + + doCheck = false; + + meta = with lib; { + description = "PEP-484 stubs for Celery"; + homepage = "https://github.com/sbdchd/celery-types"; + license = licenses.mit; + maintainers = with maintainers; [ elohmeier ]; + }; +} |