depot/third_party/nixpkgs/pkgs/development/python-modules/pykka/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

44 lines
939 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
pytest-mock,
typing-extensions,
}:
buildPythonPackage rec {
pname = "pykka";
version = "4.0.2";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jodal";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-2baFwZPNuVU39Kt5B8QvGKu7jMbg+GZ3ROoTxzPOXac=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ typing-extensions ];
nativeCheckInputs = [
pytestCheckHook
pytest-mock
];
pythonImportsCheck = [ "pykka" ];
meta = with lib; {
homepage = "https://www.pykka.org/";
description = "Python implementation of the actor model";
changelog = "https://github.com/jodal/pykka/releases/tag/v${version}";
maintainers = with maintainers; [ ];
license = licenses.asl20;
};
}