nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5
6 # build-system
7 setuptools,
8
9 # optional-dependencies
10 coverage,
11
12 # tests
13 unittestCheckHook,
14}:
15
16buildPythonPackage rec {
17 pname = "nose2";
18 version = "0.15.1";
19 pyproject = true;
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-NncPUZ31vs08v+C+5Ku/v5ufa0604DNh0oK378/E8N8=";
24 };
25
26 build-system = [ setuptools ];
27
28 optional-dependencies = {
29 coverage_plugin = [ coverage ];
30 };
31
32 pythonImportsCheck = [ "nose2" ];
33
34 __darwinAllowLocalNetworking = true;
35
36 nativeCheckInputs = [
37 unittestCheckHook
38 ];
39
40 meta = {
41 changelog = "https://github.com/nose-devs/nose2/blob/${version}/docs/changelog.rst";
42 description = "Test runner for Python";
43 mainProgram = "nose2";
44 homepage = "https://github.com/nose-devs/nose2";
45 license = lib.licenses.bsd0;
46 maintainers = [ ];
47 };
48}