54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, jsonschema
|
|
, argparse
|
|
, bootstrapped-pip
|
|
, setuptools
|
|
, fetchFromGitHub
|
|
, breakpointHook
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "wheel";
|
|
version = "0.29.0";
|
|
format = "other";
|
|
|
|
#src = fetchPypi {
|
|
# inherit pname version;
|
|
# sha256 = "1ebb8ad7e26b448e9caa4773d2357849bf80ff9e313964bcaf79cbf0201a1648";
|
|
#};
|
|
src = fetchFromGitHub {
|
|
owner = "pypa";
|
|
repo = pname;
|
|
rev = version;
|
|
name = "${pname}-${version}-source";
|
|
hash = "sha256-HedK21Lykt1dbq1wIKGlInuEWV4WezjV2Q2YX+0vyO8=";
|
|
};
|
|
|
|
#buildInputs = [ pytest pytestcov coverage ];
|
|
propagatedBuildInputs = [ argparse ];
|
|
nativeBuildInputs = [ bootstrapped-pip setuptools breakpointHook];
|
|
|
|
catchConflicts = false;
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "wheel" ];
|
|
|
|
preInstall = ''
|
|
#export PYTHONPATH=${argparse}/${python.sitePackages}
|
|
'';
|
|
|
|
# We add this flag to ignore the copy installed by bootstrapped-pip
|
|
pipInstallFlags = [ "--ignore-installed --no-deps" ];
|
|
#pipInstallFlags = ["--upgrade wheel"];
|
|
|
|
meta = {
|
|
description = "A built-package format for Python";
|
|
license = with lib.licenses; [ mit ];
|
|
homepage = "https://bitbucket.org/pypa/wheel/";
|
|
};
|
|
}
|