1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 hypothesis,
5 lib,
6 poetry-core,
7 pytestCheckHook,
8}:
9
10buildPythonPackage {
11 pname = "expecttest";
12 version = "0.2.1";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "pytorch";
17 repo = "expecttest";
18 rev = "683b09a352cc426851adc2e3a9f46e0ab25e4dee"; # no tags
19 hash = "sha256-e9/KxPN/w0mrFYgesRGqaiDQ6gor7BpX/5/B0NPtXLY=";
20 };
21
22 build-system = [ 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/pytorch/expecttest";
36 platforms = lib.platforms.unix;
37 };
38}