Merge pull request #248601 from tjni/brotab
brotab: patch out unnecessary "import pip" in setup.py
This commit is contained in:
commit
b58ace2722
1 changed files with 15 additions and 4 deletions
|
@ -1,8 +1,9 @@
|
|||
{ lib, fetchFromGitHub, python }:
|
||||
{ lib, fetchFromGitHub, fetchpatch, python }:
|
||||
|
||||
python.pkgs.buildPythonApplication rec {
|
||||
version = "1.4.2";
|
||||
pname = "brotab";
|
||||
version = "1.4.2";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "balta2ar";
|
||||
|
@ -11,11 +12,19 @@ python.pkgs.buildPythonApplication rec {
|
|||
hash = "sha256-HKKjiW++FwjdorqquSCIdi1InE6KbMbFKZFYHBxzg8Q=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://github.com/balta2ar/brotab/pull/102
|
||||
(fetchpatch {
|
||||
name = "remove-unnecessary-pip-import.patch";
|
||||
url = "https://github.com/balta2ar/brotab/commit/825cd48f255c911aabbfb495f6b8fc73f27d3fe5.patch";
|
||||
hash = "sha256-IN28AOLPKPUc3KkxIGFMpZNNXA1+O12NxS+Hl4KMXbg=";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python.pkgs; [
|
||||
requests
|
||||
flask
|
||||
psutil
|
||||
setuptools
|
||||
requests
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
|
@ -25,6 +34,8 @@ python.pkgs.buildPythonApplication rec {
|
|||
--replace "requests==2.24.0" "requests>=2.24.0"
|
||||
'';
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
nativeCheckInputs = with python.pkgs; [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue