summary refs log tree commit diff
path: root/pkgs/development/python-modules/wheel/default.nix
blob: 4527006fadd551e0264c9813137b3cf97f40ef0c (plain) (blame)
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
{ lib
, setuptools
, pip
, buildPythonPackage
, fetchFromGitHub
, pytest
, pytestcov
, coverage
, jsonschema
, bootstrapped-pip
}:

buildPythonPackage rec {
  pname = "wheel";
  version = "0.33.6";
  format = "other";

  src = fetchFromGitHub {
    owner = "pypa";
    repo = pname;
    rev = version;
    sha256 = "1bg4bxazsjxp621ymaykd8l75k7rvcvwawlipmjk7nsrl72l4p0s";
    name = "${pname}-${version}-source";
  };

  checkInputs = [ pytest pytestcov coverage ];
  nativeBuildInputs = [ bootstrapped-pip setuptools ];

  catchConflicts = false;
  # No tests in archive
  doCheck = false;

  # We add this flag to ignore the copy installed by bootstrapped-pip
  pipInstallFlags = [ "--ignore-installed" ];

  meta = {
    description = "A built-package format for Python";
    license = with lib.licenses; [ mit ];
    homepage = "https://bitbucket.org/pypa/wheel/";
  };
}