2017-06-01 18:01:24 +02:00
|
|
|
{ lib
|
2019-07-17 20:36:47 +02:00
|
|
|
, setuptools
|
|
|
|
, pip
|
2017-06-01 18:01:24 +02:00
|
|
|
, buildPythonPackage
|
2019-10-20 15:33:35 +02:00
|
|
|
, fetchFromGitHub
|
2017-06-01 18:01:24 +02:00
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, coverage
|
|
|
|
, jsonschema
|
2019-07-17 20:36:47 +02:00
|
|
|
, bootstrapped-pip
|
2017-06-01 18:01:24 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wheel";
|
2019-08-31 15:24:17 +02:00
|
|
|
version = "0.33.6";
|
2019-07-17 20:36:47 +02:00
|
|
|
format = "other";
|
2017-06-01 18:01:24 +02:00
|
|
|
|
2019-10-20 15:33:35 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pypa";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1bg4bxazsjxp621ymaykd8l75k7rvcvwawlipmjk7nsrl72l4p0s";
|
|
|
|
name = "${pname}-${version}-source";
|
2017-06-01 18:01:24 +02:00
|
|
|
};
|
|
|
|
|
2017-09-11 22:48:30 +02:00
|
|
|
checkInputs = [ pytest pytestcov coverage ];
|
2019-07-17 20:36:47 +02:00
|
|
|
nativeBuildInputs = [ bootstrapped-pip setuptools ];
|
2017-06-01 18:01:24 +02:00
|
|
|
|
2019-07-17 20:36:47 +02:00
|
|
|
catchConflicts = false;
|
2017-09-11 22:48:30 +02:00
|
|
|
# No tests in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-06-01 18:01:24 +02:00
|
|
|
# We add this flag to ignore the copy installed by bootstrapped-pip
|
2019-07-17 20:36:47 +02:00
|
|
|
pipInstallFlags = [ "--ignore-installed" ];
|
2017-06-01 18:01:24 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A built-package format for Python";
|
|
|
|
license = with lib.licenses; [ mit ];
|
|
|
|
homepage = https://bitbucket.org/pypa/wheel/;
|
|
|
|
};
|
|
|
|
}
|