nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 buildPythonPackage,
5 fetchFromGitHub,
6
7 # build-system
8 setuptools,
9
10 # tests
11 nose2,
12 pytestCheckHook,
13}:
14
15buildPythonPackage rec {
16 pname = "setuptools-dso";
17 version = "2.12.2";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "epics-base";
22 repo = "setuptools_dso";
23 tag = version;
24 hash = "sha256-YYm3mTA443vcD/4vHa7EgPzvDDzBic64NWWJDQYQHKs=";
25 };
26
27 build-system = [ setuptools ];
28
29 nativeCheckInputs = [
30 nose2
31 pytestCheckHook
32 ];
33
34 disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
35 # distutils.compilers.C.errors.CompileError: command '/nix/store/...-clang-wrapper-21.1.2/bin/clang' failed with exit code 1
36 # fatal error: 'string' file not found
37 "test_cxx"
38 ];
39
40 meta = {
41 description = "Setuptools extension for building non-Python Dynamic Shared Objects";
42 homepage = "https://github.com/mdavidsaver/setuptools_dso";
43 license = lib.licenses.bsd3;
44 maintainers = with lib.maintainers; [ marius851000 ];
45 };
46}