nixpkgs/pkgs/servers/pinnwand/steck.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
955 B
Nix
Raw Normal View History

2021-06-20 22:51:12 +02:00
{ lib
, pkgs
, python3Packages
, nixosTests
}:
2020-06-03 21:14:53 +02:00
python3Packages.buildPythonApplication rec {
pname = "steck";
2021-01-11 06:34:42 +01:00
version = "0.7.0";
2020-06-03 21:14:53 +02:00
src = python3Packages.fetchPypi {
inherit pname version;
2021-01-11 06:34:42 +01:00
sha256 = "1a3l427ibwck9zzzy1sp10hmjgminya08i4r9j4559qzy7lxghs1";
2020-06-03 21:14:53 +02:00
};
2021-06-20 22:51:12 +02:00
postPatch = ''
cat setup.py
2021-06-20 22:51:12 +02:00
substituteInPlace setup.py \
--replace 'click>=7.0,<8.0' 'click' \
--replace 'termcolor>=1.1.0,<2.0.0' 'termcolor'
2021-06-20 22:51:12 +02:00
'';
nativeBuildInputs = with python3Packages; [
setuptools
];
2020-06-03 21:14:53 +02:00
propagatedBuildInputs = with python3Packages; [
pkgs.git
appdirs
click
python-magic
2020-06-03 21:14:53 +02:00
requests
termcolor
toml
];
2021-01-11 06:34:42 +01:00
# tests are not in pypi package
doCheck = false;
2020-06-03 23:12:06 +02:00
passthru.tests = nixosTests.pinnwand;
2020-06-03 21:14:53 +02:00
meta = with lib; {
homepage = "https://github.com/supakeen/steck";
license = licenses.mit;
description = "Client for pinnwand pastebin";
2020-06-03 21:14:53 +02:00
maintainers = with maintainers; [ hexa ];
};
}