nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools-scm,
6 jaraco-functools,
7 jaraco-context,
8 jaraco-collections,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "jaraco-test";
14 version = "5.6.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "jaraco";
19 repo = "jaraco.test";
20 tag = "v${version}";
21 hash = "sha256-Ym0r92xCh+DNpFexqPlRVgcDGYNvnaJHEs5/RMaUr+s=";
22 };
23
24 postPatch = ''
25 substituteInPlace pyproject.toml \
26 --replace-fail '"coherent.licensed",' ""
27 '';
28
29 build-system = [ setuptools-scm ];
30
31 dependencies = [
32 jaraco-functools
33 jaraco-context
34 jaraco-collections
35 ];
36
37 nativeCheckInputs = [ pytestCheckHook ];
38
39 pythonImportsCheck = [ "jaraco.test" ];
40
41 meta = {
42 description = "Testing support by jaraco";
43 homepage = "https://github.com/jaraco/jaraco.test";
44 changelog = "https://github.com/jaraco/jaraco.test/blob/${src.tag}/NEWS.rst";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ dotlambda ];
47 };
48}