mv makefu/{slog,internetarchive} krebs/
This commit is contained in:
parent
346ba71f9c
commit
2e39f7b3d1
38
krebs/5pkgs/simple/internetarchive/default.nix
Normal file
38
krebs/5pkgs/simple/internetarchive/default.nix
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{ pkgs, fetchFromGitHub, ... }:
|
||||||
|
with pkgs.python3Packages;
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "internetarchive";
|
||||||
|
version = "1.7.3";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
requests
|
||||||
|
jsonpatch
|
||||||
|
docopt
|
||||||
|
clint
|
||||||
|
six
|
||||||
|
schema
|
||||||
|
backports_csv
|
||||||
|
];
|
||||||
|
|
||||||
|
# check only works when cloned from git repo
|
||||||
|
doCheck = false;
|
||||||
|
checkInputs = [
|
||||||
|
pytest
|
||||||
|
responses
|
||||||
|
];
|
||||||
|
|
||||||
|
prePatch = ''
|
||||||
|
sed -i "s/'schema.*'/'schema>=0.4.0'/" setup.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "0x3saklabdx7qrr11h5bjfd75hfbih7pw5gvl2784zvvvrqrz45g";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "python library and cli for uploading files to internet archive";
|
||||||
|
license = licenses.agpl3;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
{ pkgs, stdenv, fetchFromGitHub }:
|
{ pkgs, stdenv, fetchFromGitHub }:
|
||||||
|
|
||||||
## Posix shell logging, use with:
|
## use with:
|
||||||
# . $(command -v slog.sh)
|
# . $(command -v slog.sh)
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "slog-${version}";
|
name = "slog-${version}";
|
||||||
@ -17,4 +17,10 @@ stdenv.mkDerivation rec {
|
|||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
install -m755 slog.sh $out/bin
|
install -m755 slog.sh $out/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "POSIX shell logging";
|
||||||
|
license = licenses.mit;
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
@ -1,32 +0,0 @@
|
|||||||
{ pkgs, fetchFromGitHub, ... }:
|
|
||||||
with pkgs.python3Packages;
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "internetarchive";
|
|
||||||
version = "1.7.3";
|
|
||||||
name = "${pname}-${version}";
|
|
||||||
propagatedBuildInputs = [
|
|
||||||
requests
|
|
||||||
jsonpatch
|
|
||||||
docopt
|
|
||||||
clint
|
|
||||||
six
|
|
||||||
schema
|
|
||||||
backports_csv
|
|
||||||
];
|
|
||||||
|
|
||||||
# check only works when cloned from git repo
|
|
||||||
doCheck = false;
|
|
||||||
checkInputs = [
|
|
||||||
pytest
|
|
||||||
responses
|
|
||||||
];
|
|
||||||
|
|
||||||
prePatch = ''
|
|
||||||
sed -i "s/'schema.*'/'schema>=0.4.0'/" setup.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "0x3saklabdx7qrr11h5bjfd75hfbih7pw5gvl2784zvvvrqrz45g";
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user