nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3
4 buildPythonPackage,
5 fetchFromGitHub,
6
7 # build-system
8 setuptools,
9 setuptools-scm,
10
11 # dependencies
12 lxml,
13 trimesh,
14 numpy,
15 six,
16
17 # nativeCheckInputs
18 pytestCheckHook,
19 pytest-cov-stub,
20}:
21
22buildPythonPackage (finalAttrs: {
23 pname = "yourdfpy";
24 version = "0.0.60";
25 pyproject = true;
26
27 src = fetchFromGitHub {
28 owner = "clemense";
29 repo = "yourdfpy";
30 tag = "v${finalAttrs.version}";
31 hash = "sha256-tXFrwtxjLvHNxT/MhrAiV2CGcbKj1JRi/Yo8Qt6UBfk=";
32 };
33
34 build-system = [
35 setuptools
36 setuptools-scm
37 ];
38
39 dependencies = [
40 lxml
41 trimesh
42 numpy
43 six
44 ];
45
46 nativeCheckInputs = [
47 pytestCheckHook
48 pytest-cov-stub
49 ];
50
51 pythonImportsCheck = [
52 "yourdfpy"
53 ];
54
55 meta = {
56 description = "Python parser for URDFs";
57 homepage = "https://github.com/clemense/yourdfpy/";
58 changelog = "https://github.com/clemense/yourdfpy/blob/${finalAttrs.src.tag}/CHANGELOG.md";
59 license = lib.licenses.mit;
60 maintainers = with lib.maintainers; [ nim65s ];
61 mainProgram = "yourdfpy";
62 };
63})