7 buildPythonPackage rec {
11 src = fetchFromGitHub {
15 hash = "sha256-bEf3OJg6ksDvzZE7ezA58Q2FObb5V7BG8vkKtX284Jg=";
19 substituteInPlace pyproject.toml \
20 --replace '"--flake8",' "" \
21 --replace '"--tb=short",' "" \
22 --replace '"--cov=result",' "" \
23 --replace '"--cov=tests",' "" \
24 --replace '"--cov-report=term",' "" \
25 --replace '"--cov-report=xml",' ""
33 #TODO: figure out the failure "match o:" Invalid Syntax
34 "tests/test_pattern_matching.py"
37 pythonImportsCheck = [ "result" ];
40 description = "A simple Result type for Python 3 inspired by Rust, fully type annotated";
41 homepage = "https://github.com/rustedpy/result";
42 license = licenses.mit;