nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 19.03 33 lines 858 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, python, coverage, lsof, glibcLocales }: 2 3buildPythonPackage rec { 4 pname = "sh"; 5 version = "1.12.14"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "1z2hx357xp3v4cv44xmqp7lli3frndqpyfmpbxf7n76h7s1zaaxm"; 10 }; 11 12 # Disable tests that fail on Darwin 13 # Some of the failures are due to Nix using GNU coreutils 14 patches = [ ./disable-broken-tests-darwin.patch ]; 15 16 postPatch = '' 17 sed -i 's#/usr/bin/env python#${python.interpreter}#' test.py 18 ''; 19 20 checkInputs = [ coverage lsof glibcLocales ]; 21 22 # A test needs the HOME directory to be different from $TMPDIR. 23 preCheck = '' 24 export LC_ALL="en_US.UTF-8" 25 HOME=$(mktemp -d) 26 ''; 27 28 meta = { 29 description = "Python subprocess interface"; 30 homepage = https://pypi.python.org/pypi/sh/; 31 license = stdenv.lib.licenses.mit; 32 }; 33}