python3Packages.result: 0.7.0 -> 0.16.1
This commit is contained in:
parent
fcc328c4fa
commit
a59ae7b002
1 changed files with 8 additions and 9 deletions
|
@ -2,18 +2,20 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pytest-asyncio
|
||||||
|
, nix-update-script
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "result";
|
pname = "result";
|
||||||
version = "0.7.0";
|
version = "0.16.1";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "rustedpy";
|
owner = "rustedpy";
|
||||||
repo = "result";
|
repo = "result";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-bEf3OJg6ksDvzZE7ezA58Q2FObb5V7BG8vkKtX284Jg=";
|
hash = "sha256-7BvFIQbl4Udd9GTpbMrAqP0P1BGn/C1CHQ3QUCEMXPs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -28,19 +30,16 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
|
pytest-asyncio
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTestPaths = [
|
passthru.updateScript = nix-update-script {};
|
||||||
#TODO: figure out the failure "match o:" Invalid Syntax
|
|
||||||
"tests/test_pattern_matching.py"
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "result" ];
|
pythonImportsCheck = [ "result" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A simple Result type for Python 3 inspired by Rust, fully type annotated";
|
description = "A simple Result type for Python 3 inspired by Rust, fully type annotated";
|
||||||
homepage = "https://github.com/rustedpy/result";
|
homepage = "https://github.com/rustedpy/result";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [];
|
maintainers = with lib.maintainers; [ emattiza ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue