3
0
Fork 0
forked from mirrors/nixpkgs

asciinema: specify license

This commit is contained in:
Fabian Affolter 2022-06-14 08:55:52 +02:00 committed by GitHub
parent 8acd15d8bf
commit a844e3517d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,8 @@
{ lib, python3Packages, fetchFromGitHub, glibcLocales }:
{ lib
, python3Packages
, fetchFromGitHub
, glibcLocales
}:
python3Packages.buildPythonApplication rec {
pname = "asciinema";
@ -9,7 +13,7 @@ python3Packages.buildPythonApplication rec {
owner = "asciinema";
repo = "asciinema";
rev = "v${version}";
sha256 = "sha256-ioSNd0Fjk2Fp05lk3HeokIjNYGU0jQEaIDfcFB18mV0=";
hash = "sha256-ioSNd0Fjk2Fp05lk3HeokIjNYGU0jQEaIDfcFB18mV0=";
};
postPatch = ''
@ -17,16 +21,19 @@ python3Packages.buildPythonApplication rec {
--replace "python3" "${python3Packages.python}/bin/python"
'';
checkInputs = [ glibcLocales python3Packages.nose ];
checkInputs = [
glibcLocales
python3Packages.nose
];
checkPhase = ''
LC_ALL=en_US.UTF-8 nosetests
'';
meta = {
meta = with lib; {
description = "Terminal session recorder and the best companion of asciinema.org";
homepage = "https://asciinema.org/";
license = with lib.licenses; [ gpl3 ];
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ ];
};
}