1{ buildPythonPackage
2, fetchFromGitHub
3, hypothesis
4, lib
5, poetry
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "expecttest";
11 version = "0.1.3";
12 format = "pyproject";
13
14 src = fetchFromGitHub {
15 owner = "ezyang";
16 repo = pname;
17 rev = "v${version}";
18 hash = "sha256-5CnpVFSbf3FcAa06Y7atG8sxu8uevpfrliB2HuVcrx0=";
19 };
20
21 buildInputs = [ poetry ];
22
23 checkInputs = [ hypothesis pytestCheckHook ];
24
25 pythonImportsCheck = [ "expecttest" ];
26
27 meta = {
28 maintainers = [ lib.maintainers.SomeoneSerge ];
29 license = lib.licenses.mit;
30 description = ''EZ Yang "golden" tests (testing against a reference implementation)'';
31 homepage = "https://github.com/ezyang/expecttest";
32 platforms = lib.platforms.unix;
33 };
34}