depot/third_party/nixpkgs/pkgs/development/python-modules/expecttest/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

38 lines
791 B
Nix

{
buildPythonPackage,
fetchFromGitHub,
hypothesis,
lib,
poetry-core,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "expecttest";
version = "0.1.4";
format = "pyproject";
src = fetchFromGitHub {
owner = "ezyang";
repo = pname;
rev = "v${version}";
hash = "sha256-BFM0jFWXfH72n9XuFtU9URW8LWGPVJncXniBV5547W4=";
};
nativeBuildInputs = [ poetry-core ];
nativeCheckInputs = [
hypothesis
pytestCheckHook
];
pythonImportsCheck = [ "expecttest" ];
meta = {
maintainers = [ lib.maintainers.SomeoneSerge ];
license = lib.licenses.mit;
description = ''EZ Yang "golden" tests (testing against a reference implementation)'';
homepage = "https://github.com/ezyang/expecttest";
platforms = lib.platforms.unix;
};
}