mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 17:41:12 +00:00
f31773b852
- project is not a python library -> move out of pythonPackages. - also enable tests
26 lines
591 B
Nix
26 lines
591 B
Nix
{ python3Packages, fetchFromGitHub , tarsnap }:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
name = "tarsnapper-${version}";
|
|
version = "0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "miracle2k";
|
|
repo = "tarsnapper";
|
|
rev = version;
|
|
sha256 = "03db49188f4v1946c8mqqj30ah10x68hbg3a58js0syai32v12pm";
|
|
};
|
|
|
|
buildInputs = with python3Packages; [ nose pytest ];
|
|
|
|
checkPhase = ''
|
|
py.test .
|
|
'';
|
|
|
|
propagatedBuildInputs = with python3Packages; [ pyyaml dateutil pexpect ];
|
|
|
|
patches = [ ./remove-argparse.patch ];
|
|
|
|
makeWrapperArgs = ["--prefix PATH : ${tarsnap}/bin"];
|
|
}
|