mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 03:14:03 +00:00
Merge pull request #188282 from onny/transifex-client
transifex-client: Fix build
This commit is contained in:
commit
e2e40d7098
@ -1,24 +1,36 @@
|
||||
{ lib, buildPythonApplication, fetchPypi
|
||||
, python-slugify, requests, urllib3, six, setuptools, GitPython }:
|
||||
{ lib
|
||||
, buildPythonApplication
|
||||
, fetchPypi
|
||||
, python-slugify
|
||||
, requests
|
||||
, urllib3
|
||||
, six
|
||||
, setuptools
|
||||
, GitPython
|
||||
, pythonRelaxDepsHook
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "transifex-client";
|
||||
version = "0.14.4";
|
||||
|
||||
propagatedBuildInputs = [
|
||||
urllib3 requests python-slugify six setuptools GitPython
|
||||
];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "11dc95cefe90ebf0cef3749c8c7d85b9d389c05bd0e3389bf117685df562bd5c";
|
||||
};
|
||||
|
||||
# https://github.com/transifex/transifex-client/issues/323
|
||||
prePatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "python-slugify<5.0.0" "python-slugify"
|
||||
'';
|
||||
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
||||
pythonRelaxDeps = [ "python-slugify" ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
GitPython
|
||||
python-slugify
|
||||
requests
|
||||
setuptools
|
||||
six
|
||||
urllib3
|
||||
];
|
||||
|
||||
# Requires external resources
|
||||
doCheck = false;
|
||||
|
@ -11585,7 +11585,7 @@ with pkgs;
|
||||
|
||||
transcrypt = callPackage ../applications/version-management/git-and-tools/transcrypt { };
|
||||
|
||||
transifex-client = python3.pkgs.callPackage ../tools/text/transifex-client { };
|
||||
transifex-client = python39.pkgs.callPackage ../tools/text/transifex-client { };
|
||||
|
||||
translate-shell = callPackage ../applications/misc/translate-shell { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user