borgbackup: cleanup inputs

tox/detox are removed; they are used to test multiple python
implementations in parallel, which isn't really appropriate for a Nix
install check.  Also, because these were added to the propagated build
inputs, lots of unnecessary stuff ended up in the resulting closure.
Note that removing tox does not imply tests are not run; they never were
to begin with; this is a separate issue.

This fixes https://github.com/NixOS/nixpkgs/issues/16171

Also, for "correctness" ordinary build-time dependencies are added to
`buildInputs`; only inputs that are to be added to the python path are
added to `propagatedBuildInputs`.
This commit is contained in:
Joachim Fasting 2016-12-31 20:44:47 +01:00
parent 61027b7fce
commit 5195e0d70f
No known key found for this signature in database
GPG Key ID: 7544761007FE4E08

View File

@ -15,11 +15,12 @@ python3Packages.buildPythonApplication rec {
# For building documentation:
sphinx sphinx_rtd_theme
];
propagatedBuildInputs = [
acl lz4 openssl
] ++ (with python3Packages; [
cython msgpack llfuse tox detox setuptools_scm
]);
buildInputs = [
acl lz4 openssl python3Packages.setuptools_scm
];
propagatedBuildInputs = with python3Packages; [
cython llfuse msgpack
];
preConfigure = ''
export BORG_OPENSSL_PREFIX="${openssl.dev}"