13 platform = "manylinux1_x86_64";
14 hash = "sha256-aTANmCWyR8QVZVQGk1WbgjWjZeBSUN2ZVNg5ab9s6n0=";
17 platform = "macosx_10_9_universal2";
18 hash = "sha256-9ihkrgcREVbp7GDvl7w1MlpAWmpjHFusJYNqvBnQij4=";
22 inherit (stdenv.hostPlatform) system;
23 platformInfo = platformInfos.${system} or (throw "Unsupported platform ${system}");
25 python3Packages.buildPythonApplication rec {
31 inherit pname version format;
32 inherit (platformInfo) platform hash;
35 nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];
37 buildInputs = [ zlib ];
40 changelog = "https://sourcery.ai/changelog/";
41 description = "AI-powered code review and pair programming tool for Python";
42 downloadPage = "https://pypi.org/project/sourcery/";
43 homepage = "https://sourcery.ai";
44 license = lib.licenses.unfree;
45 mainProgram = "sourcery";
46 maintainers = with lib.maintainers; [ tomasajt ];