mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 23:24:35 +00:00
ee16c546a4
We have updated python-slugify to 4.0.0 (or newer) which broke the build. This has happened several times before without actually breaking the software. So yeah, lets just accept newer versions and fix it if it breaks for some other reason in the future.
33 lines
863 B
Nix
33 lines
863 B
Nix
{ stdenv, buildPythonApplication, fetchPypi
|
|
, python-slugify, requests, urllib3, six, setuptools }:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "transifex-client";
|
|
version = "0.13.6";
|
|
|
|
propagatedBuildInputs = [
|
|
urllib3 requests python-slugify six setuptools
|
|
];
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0y6pprlmkmi7wfqr3k70sb913qa70p3i90q5mravrai7cr32y1w8";
|
|
};
|
|
|
|
prePatch = ''
|
|
substituteInPlace requirements.txt --replace "urllib3<1.24" "urllib3>=1.24" \
|
|
--replace "six==1.11.0" "six>=1.11.0" \
|
|
--replace "python-slugify==1.2.6" "python-slugify>=1.2.6"
|
|
'';
|
|
|
|
# Requires external resources
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://www.transifex.com/";
|
|
license = licenses.gpl2;
|
|
description = "Transifex translation service client";
|
|
maintainers = [ maintainers.etu ];
|
|
};
|
|
}
|