mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
Merge pull request #45820 from obsidiansystems/dont-use-obsolete-platform-aliases
treewide: Dont use obsolete platform aliases
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{lib, fetchPypi, python, buildPythonPackage, isPyPy, gfortran, nose, blas, hostPlatform }:
|
||||
{ stdenv, lib, fetchPypi, python, buildPythonPackage, isPyPy, gfortran, nose, blas }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "numpy";
|
||||
@@ -20,7 +20,7 @@ buildPythonPackage rec {
|
||||
./numpy-distutils-C++.patch
|
||||
];
|
||||
|
||||
postPatch = lib.optionalString hostPlatform.isMusl ''
|
||||
postPatch = lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||
# Use fenv.h
|
||||
sed -i \
|
||||
numpy/core/src/npymath/ieee754.c.src \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ lib, fetchPypi, buildPythonPackage, hostPlatform }:
|
||||
{ stdenv, lib, fetchPypi, buildPythonPackage }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyserial";
|
||||
@@ -10,7 +10,7 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
checkPhase = "python -m unittest discover -s test";
|
||||
doCheck = !hostPlatform.isDarwin; # broken on darwin
|
||||
doCheck = !stdenv.hostPlatform.isDarwin; # broken on darwin
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/pyserial/pyserial";
|
||||
|
||||
Reference in New Issue
Block a user