Fix MacOS pyyaml dependency

This commit is contained in:
Jeremy Wall 2022-04-04 12:05:39 -04:00
parent 80056077a9
commit e4e09e2295
2 changed files with 12 additions and 4 deletions

View File

@ -30,7 +30,6 @@ let inputs = [
#python-slugify #python-slugify
#pytimeparse #pytimeparse
#pytz #pytz
#pyyaml
#requests #requests
#sqlparse #sqlparse
#text-unidecode #text-unidecode
@ -62,6 +61,7 @@ let inputs = [
sqlparse sqlparse
python-dateutil python-dateutil
msgpack msgpack
pyyaml
]; ];
in in
buildPythonPackage rec { buildPythonPackage rec {

View File

@ -8,8 +8,8 @@
nativeBuildInputs = with self.rustPlatform; [ nativeBuildInputs = with self.rustPlatform; [
cargoSetupHook maturinBuildHook cargoSetupHook maturinBuildHook
]; ];
# some platforms (MacOS) require this # some platforms (MacOS) require this
buildInputs = [ self.libiconv ]; buildInputs = [ self.libiconv ];
src = pyself.fetchPypi { src = pyself.fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-WGcuNvq5iMhJppNAWSDuGEIfJyRcSOX57PSWNp7TGoU="; sha256 = "sha256-WGcuNvq5iMhJppNAWSDuGEIfJyRcSOX57PSWNp7TGoU=";
@ -60,13 +60,21 @@
# The tests use the network so disable for now. # The tests use the network so disable for now.
doCheck = false; doCheck = false;
}; };
pyyaml = with pyself; buildPythonPackage rec {
pname = "PyYAML";
version = "3.13";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-PvMJIUXptw493Sx61ZvdAlKpTf45SXIWM+QTRN4Apr8=";
};
};
mashumaro = pyself.buildPythonPackage rec { mashumaro = pyself.buildPythonPackage rec {
pname = "mashumaro"; pname = "mashumaro";
version = "2.9"; version = "2.9";
buildInputs = [ buildInputs = [
msgpack msgpack
typing-extensions typing-extensions
pyself.pyyaml pyyaml
networkx networkx
]; ];
src = pyself.fetchPypi { src = pyself.fetchPypi {