Merge branch 'master' into staging

This commit is contained in:
Vladimír Čunát
2017-02-03 11:47:38 +01:00
143 changed files with 3275 additions and 1859 deletions

View File

@@ -1,6 +1,7 @@
# This function provides specific bits for building a flit-based Python package.
{ flit
{ python
, flit
}:
{ ... } @ attrs:
@@ -13,7 +14,9 @@ attrs // {
runHook postBuild
'';
# Flit packages do not come with tests.
installCheckPhase = attrs.checkPhase or ":";
doCheck = attrs.doCheck or false;
}
# Flit packages, like setuptools packages, might have tests.
installCheckPhase = attrs.checkPhase or ''
${python.interpreter} -m unittest discover
'';
doCheck = attrs.doCheck or true;
}

View File

@@ -12,7 +12,7 @@
let
setuptools-specific = import ./build-python-package-setuptools.nix { inherit lib python bootstrapped-pip; };
flit-specific = import ./build-python-package-flit.nix { inherit flit; };
flit-specific = import ./build-python-package-flit.nix { inherit python flit; };
wheel-specific = import ./build-python-package-wheel.nix { };
common = import ./build-python-package-common.nix { inherit python bootstrapped-pip; };
in
@@ -34,4 +34,4 @@ let
else if format == "other" then {}
else throw "Unsupported format ${format}";
in mkPythonDerivation ( attrs // formatspecific )
in mkPythonDerivation ( attrs // formatspecific )