forked from mirrors/nixpkgs
f665828fa3
This changeset allows for cross-compilation of Python packages. Packages built with buildPythonPackage are not allowed to refer to the build machine. Executables that have shebangs will refer to the host.
23 lines
587 B
Nix
23 lines
587 B
Nix
{ lib, buildPythonPackage, fetchPypi, libyaml, buildPackages }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "PyYAML";
|
|
version = "3.13";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "3ef3092145e9b70e3ddd2c7ad59bdd0252a94dfe3949721633e41344de00a6bf";
|
|
};
|
|
|
|
nativeBuildInputs = [ buildPackages.stdenv.cc ];
|
|
|
|
propagatedBuildInputs = [ libyaml ];
|
|
|
|
meta = with lib; {
|
|
description = "The next generation YAML parser and emitter for Python";
|
|
homepage = https://github.com/yaml/pyyaml;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|