python312Packages.pysatochip: fix build (#352942)
This commit is contained in:
commit
90fcec9bc9
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchPypi,
|
fetchFromGitHub,
|
||||||
certifi,
|
certifi,
|
||||||
cryptography,
|
cryptography,
|
||||||
ecdsa,
|
ecdsa,
|
||||||
@ -17,18 +17,13 @@ buildPythonPackage rec {
|
|||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "toporin";
|
||||||
hash = "sha256-ccyBvQ00p/uDULzGeJIhIJIiRRrFitsp271wep74DHI=";
|
repo = "pysatochip";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-7wA9erk2OA1FyNSzOSWJzjyp9QeYq6C+YA8B0Dk2iQE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace requirements.txt \
|
|
||||||
--replace "cryptography==3.3.2" "cryptography" \
|
|
||||||
--replace "ecdsa==0.15" "ecdsa" \
|
|
||||||
--replace "pyopenssl==20.0.0" "pyopenssl"
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
cryptography
|
cryptography
|
||||||
ecdsa
|
ecdsa
|
||||||
|
Loading…
Reference in New Issue
Block a user