summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/jaraco-envs/default.nix
blob: 891ccac0f0057a47dfbd6891cf5f661dcf7945d1 (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
37
38
39
40
41
42
43
44
45
46
47
48
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools-scm,
  path,
  tox,
  virtualenv,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "jaraco-envs";
  version = "2.6.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jaraco";
    repo = "jaraco.envs";
    tag = "v${version}";
    hash = "sha256-yRMX0H6yWN8TiO/LGAr4HyrVS8ZhBjuR885/+UQscP0=";
  };

  build-system = [ setuptools-scm ];

  dependencies = [
    path
    tox
    virtualenv
  ];

  pythonImportsCheck = [ "jaraco.envs" ];

  nativeCheckInputs = [ pytestCheckHook ];

  disabledTestPaths = [
    # requires networking
    "jaraco/envs.py"
  ];

  meta = {
    changelog = "https://github.com/jaraco/jaraco.envs/blob/${src.rev}/NEWS.rst";
    description = "Classes for orchestrating Python (virtual) environments";
    homepage = "https://github.com/jaraco/jaraco.envs";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}