blob: d4cdd4d04cf5323f1f67beed58b26e71143b35ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonAtLeast,
setuptools,
}:
buildPythonPackage {
pname = "assay";
version = "0-unstable-2024-05-09";
pyproject = true;
src = fetchFromGitHub {
owner = "brandon-rhodes";
repo = "assay";
rev = "74617d70e77afa09f58b3169cf496679ac5d5621";
hash = "sha256-zYpLtcXZ16EJWKSCqxFkSz/G9PwIZEQGBrYiJKuqnc4=";
};
build-system = [ setuptools ];
postPatch = lib.optionalString (pythonAtLeast "3.14") ''
substituteInPlace assay/assertion.py \
--replace-fail "op.load_assertion_error" "op.load_common_constant"
'';
pythonImportsCheck = [ "assay" ];
meta = {
homepage = "https://github.com/brandon-rhodes/assay";
description = "Attempt to write a Python testing framework I can actually stand";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ zane ];
};
}
|