47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, jsonschema
|
|
, bootstrapped-pip
|
|
, setuptools
|
|
, fetchFromGitHub
|
|
, breakpointHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "argparse";
|
|
version = "1.4.0";
|
|
format = "other";
|
|
|
|
#src = fetchPypi {
|
|
# inherit pname version;
|
|
# sha256 = "1ebb8ad7e26b448e9caa4773d2357849bf80ff9e313964bcaf79cbf0201a1648";
|
|
#};
|
|
src= fetchFromGitHub {
|
|
inherit pname version;
|
|
owner="ThomasWaldmann";
|
|
repo ="argparse";
|
|
tag = "r140";
|
|
hash = "sha256-L0cJ44aO3Wd2P/8vykJlOEZu7W2AsNCcAaGDeHtn6b0=";
|
|
};
|
|
|
|
#buildInputs = [ pytest pytestcov coverage ];
|
|
nativeBuildInputs = [ bootstrapped-pip setuptools breakpointHook];
|
|
|
|
catchConflicts = false;
|
|
|
|
doCheck = false;
|
|
|
|
#pythonImportsCheck = [ "wheel" ];
|
|
|
|
# We add this flag to ignore the copy installed by bootstrapped-pip
|
|
pipInstallFlags = [ "--ignore-installed" ];
|
|
#pipInstallFlags = ["--upgrade wheel"];
|
|
|
|
meta = {
|
|
description = "A built-package format for Python";
|
|
license = with lib.licenses; [ mit ];
|
|
homepage = "https://bitbucket.org/pypa/wheel/";
|
|
};
|
|
}
|