blob: cd356d600c50564e1cbad4b82671fd1e3a5fd60e (
plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools-rust,
rustPlatform,
rustc,
cargo,
milksnake,
cffi,
pytestCheckHook,
nix-update-script,
}:
buildPythonPackage rec {
pname = "symbolic";
version = "12.17.1";
pyproject = true;
src = fetchFromGitHub {
owner = "getsentry";
repo = "symbolic";
tag = version;
# the `py` directory is not included in the tarball, so we fetch the source via git instead
forceFetchGit = true;
hash = "sha256-rO+bLg2TgSxWJ+ub3TLejKdWTlp9e5/++TEna73Y0Lk=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-Us3xROXFKmlYOavXVyvxraMuY6p75AKjh9AOX49ui4Q=";
};
nativeBuildInputs = [
setuptools-rust
rustPlatform.cargoSetupHook
rustc
cargo
milksnake
];
dependencies = [ cffi ];
preBuild = ''
cd py
'';
preCheck = ''
cd ..
'';
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "py" ];
pythonImportsCheck = [ "symbolic" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Python library for dealing with symbol files and more";
homepage = "https://github.com/getsentry/symbolic";
changelog = "https://github.com/getsentry/symbolic/blob/${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ defelo ];
};
}
|