1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 09:31:01 +00:00
nixpkgs/pkgs/tools/misc/asciinema/default.nix
Frederik Rietdijk ef4442e827 Python: replace requests2 with requests tree-wide
See f63eb58573

The `requests2` attribute now throws an error informing that `requests`
should be used instead.
2017-05-07 12:56:09 +02:00

35 lines
832 B
Nix

{ lib, python3Packages, fetchFromGitHub }:
let
pythonPackages = python3Packages;
in pythonPackages.buildPythonApplication rec {
name = "asciinema-${version}";
version = "1.4.0";
buildInputs = with pythonPackages; [ nose ];
propagatedBuildInputs = with pythonPackages; [ requests ];
src = fetchFromGitHub {
owner = "asciinema";
repo = "asciinema";
rev = "v${version}";
sha256 = "1m2gjqxb5gqyz19lvp7jmwp7cxjc6nb0b2rrlsg3z2bl6vmi1xn2";
};
patchPhase = ''
# disable one test which is failing with -> OSError: out of pty devices
rm tests/pty_recorder_test.py
'';
checkPhase = ''
nosetests
'';
meta = {
description = "Terminal session recorder and the best companion of asciinema.org";
homepage = https://asciinema.org/;
license = with lib.licenses; [ gpl3 ];
};
}