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