Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2524d3ca89ac
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c447fb48791b
Choose a head ref
  • 2 commits
  • 4 files changed
  • 3 contributors

Commits on Apr 24, 2021

  1. pythonPackages.tappy: init at 3.0

    SFrijters authored and globin committed Apr 24, 2021
    Copy the full SHA
    e62cfc9 View commit details
  2. tracker: 3.0.3 → 3.1.1

    Also reverts #118823
    
    Co-Authored-By: Bastian Köcher <info@kchr.de>
    Co-Authored-By: Stefan Frijters <sfrijters@gmail.com>
    3 people authored and globin committed Apr 24, 2021
    Copy the full SHA
    c447fb4 View commit details
32 changes: 20 additions & 12 deletions pkgs/development/libraries/tracker/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ lib, stdenv
, fetchurl
, fetchpatch
, gettext
, meson
, ninja
@@ -27,22 +28,33 @@
, substituteAll
}:

stdenv.mkDerivation (rec {
stdenv.mkDerivation rec {
pname = "tracker";
version = "3.0.3";
version = "3.1.1";

outputs = [ "out" "dev" "devdoc" ];

src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "sha256-b1yEqzvh7aUgUBsq7XIhYWoM8VKRDFN3V7U4vAXv/KM=";
sha256 = "sha256-Q3bi6YRUBm9E96JC5FuZs7/kwDtn+rGauw7Vhsp0iuc=";
};

patches = [
(substituteAll {
src = ./fix-paths.patch;
inherit asciidoc;
})

# Add missing build target dependencies to fix parallel building of docs.
# TODO: Upstream this.
./fix-docs.patch

# Fix 32bit datetime issue, use this upstream patch until 3.1.2 lands
# https://gitlab.gnome.org/GNOME/tracker/-/merge_requests/401
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/tracker/merge_requests/401.patch";
sha256 = "QEf+ciGkkCzanmtGO0aig6nAxd+NxjvuNi4RbNOwZEA=";
})
];

nativeBuildInputs = [
@@ -74,22 +86,23 @@ stdenv.mkDerivation (rec {
libstemmer
];

checkInputs = [
python3.pkgs.pygobject3
checkInputs = with python3.pkgs; [
pygobject3
tappy
];

mesonFlags = [
"-Ddocs=true"
];

# https://gitlab.gnome.org/GNOME/tracker/-/issues/292#note_1075369
doCheck = !stdenv.isi686;
doCheck = true;

postPatch = ''
patchShebangs utils/g-ir-merge/g-ir-merge
patchShebangs utils/data-generators/cc/generate
patchShebangs tests/functional-tests/test-runner.sh.in
patchShebangs tests/functional-tests/*.py
patchShebangs examples/python/endpoint.py
'';

preCheck = ''
@@ -134,8 +147,3 @@ stdenv.mkDerivation (rec {
platforms = platforms.linux;
};
}
// lib.optionalAttrs stdenv.isi686 {
# TMP: fatal error: libtracker-sparql/tracker-sparql-enum-types.h: No such file or directory
enableParallelBuilding = false;
}
)
28 changes: 28 additions & 0 deletions pkgs/development/libraries/tracker/fix-docs.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
diff --git a/docs/reference/libtracker-sparql/examples/meson.build b/docs/reference/libtracker-sparql/examples/meson.build
index 1cb1d9f3f..313c72345 100644
--- a/docs/reference/libtracker-sparql/examples/meson.build
+++ b/docs/reference/libtracker-sparql/examples/meson.build
@@ -1,20 +1,20 @@
executable(
'readonly-example',
'readonly-example.c',
- dependencies: tracker_sparql_dep,
+ dependencies: [tracker_common_dep, tracker_sparql_dep],
build_by_default: true
)

executable(
'writeonly-example',
'writeonly-example.c',
- dependencies: tracker_sparql_dep,
+ dependencies: [tracker_common_dep, tracker_sparql_dep],
build_by_default: true
)

executable(
'writeonly-with-blank-nodes-example',
'writeonly-with-blank-nodes-example.c',
- dependencies: tracker_sparql_dep,
+ dependencies: [tracker_common_dep, tracker_sparql_dep],
build_by_default: true
)
29 changes: 29 additions & 0 deletions pkgs/development/python-modules/tappy/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, pytestCheckHook
}:

buildPythonPackage rec {
pname = "tap.py";
version = "3.0";

disabled = pythonOlder "3.5";

src = fetchPypi {
inherit pname version;
sha256 = "sha256-9e7u6/1k5T0yZhdSu0wohYmjuru5bbPzkaTsKfE1nHA=";
};

checkInputs = [ pytestCheckHook ];

pythonImportsCheck = [ "tap" ];

meta = with lib; {
homepage = "https://github.com/python-tap/tappy";
description = "A set of tools for working with the Test Anything Protocol (TAP) in Python";
license = licenses.bsd2;
maintainers = with maintainers; [ sfrijters ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -8380,6 +8380,8 @@ in {

tailer = callPackage ../development/python-modules/tailer { };

tappy = callPackage ../development/python-modules/tappy { };

tarman = callPackage ../development/python-modules/tarman { };

tasklib = callPackage ../development/python-modules/tasklib { };