blob: 79f469347a89a52a11ce2b36026a88378f694329 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{
lib,
stdenv,
python3Packages,
fetchPypi,
autoPatchelfHook,
zlib,
}:
let
platformInfos = {
"x86_64-linux" = {
platform = "manylinux1_x86_64";
hash = "sha256-IJFuMtrddHciuHGeiCuv4hgco9E3GJveegL7dBmVmAw=";
};
"x86_64-darwin" = {
platform = "macosx_10_9_universal2";
hash = "sha256-eTD8NnmDTMSB0dt5skPOlWbnW6AexxEkKZ9ABc+kUas=";
};
};
platformInfo = platformInfos.${stdenv.system} or (throw "Unsupported platform ${stdenv.system}");
in
python3Packages.buildPythonApplication rec {
pname = "sourcery";
version = "1.19.0";
format = "wheel";
src = fetchPypi {
inherit pname version format;
inherit (platformInfo) platform hash;
};
nativeBuildInputs = lib.optionals stdenv.isLinux [ autoPatchelfHook ];
buildInputs = [ zlib ];
meta = {
changelog = "https://sourcery.ai/changelog/";
description = "AI-powered code review and pair programming tool for Python";
downloadPage = "https://pypi.org/project/sourcery/";
homepage = "https://sourcery.ai";
license = lib.licenses.unfree;
mainProgram = "sourcery";
maintainers = with lib.maintainers; [ tomasajt ];
platforms = [
"x86_64-linux"
"x86_64-darwin"
];
};
}
|