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