Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.1 kB view raw
1{ lib 2, anyio 3, curio 4, buildPythonPackage 5, fetchFromGitHub 6, httpx 7, hypothesis 8, mypy 9, poetry-core 10, pytestCheckHook 11, pytest-aio 12, pytest-cov 13, pytest-mypy 14, pytest-mypy-plugins 15, pytest-subtests 16, setuptools 17, trio 18, typing-extensions 19}: 20 21buildPythonPackage rec { 22 pname = "returns"; 23 version = "0.20.0"; 24 format = "pyproject"; 25 26 src = fetchFromGitHub { 27 owner = "dry-python"; 28 repo = "returns"; 29 rev = "refs/tags/${version}"; 30 hash = "sha256-28WYjrjmu3hQ8+Snuvl3ykTd86eWYI97AE60p6SVwDQ="; 31 }; 32 33 nativeBuildInputs = [ 34 poetry-core 35 ]; 36 37 propagatedBuildInputs = [ 38 typing-extensions 39 ]; 40 41 nativeCheckInputs = [ 42 anyio 43 curio 44 httpx 45 hypothesis 46 mypy 47 pytestCheckHook 48 pytest-aio 49 pytest-cov 50 pytest-mypy 51 pytest-mypy-plugins 52 pytest-subtests 53 setuptools 54 trio 55 ]; 56 57 pytestFlagsArray = [ "--ignore=typesafety" ]; 58 59 meta = with lib; { 60 description = "Make your functions return something meaningful, typed, and safe!"; 61 homepage = "returns.rtfd.io"; 62 license = licenses.bsd2; 63 maintainers = [ maintainers.jessemoore ]; 64 }; 65}