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