python310Packages.python-binance: fix build

This commit is contained in:
Theodore Ni 2023-07-02 19:29:51 -07:00
parent 60fa9e3f4f
commit 13499263c9
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

View File

@ -3,6 +3,8 @@
, buildPythonPackage , buildPythonPackage
, dateparser , dateparser
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, pycryptodome
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, requests , requests
@ -26,10 +28,19 @@ buildPythonPackage rec {
hash = "sha256-e88INUEkjOSVOD0KSs9LmstuQ7dQZdJk8K6VqFEusww="; hash = "sha256-e88INUEkjOSVOD0KSs9LmstuQ7dQZdJk8K6VqFEusww=";
}; };
patches = [
(fetchpatch {
name = "fix-unable-to-determine-version-error.patch";
url = "https://github.com/sammchardy/python-binance/commit/1b9dd4853cafccf6cdacc13bb64a18632a79a6f1.patch";
hash = "sha256-6KRHm2cZRcdD6qMdRAwlea4qLZ1/1YFzZAQ7Ph4XMCs=";
})
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
dateparser dateparser
requests requests
pycryptodome
six six
ujson ujson
websockets websockets