nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #39195 from teto/vdirsyncer

[RDY] Vdirsyncer update

authored by

Robert Schütz and committed by
GitHub
1aaab715 f220f187

+69 -10
+26
pkgs/development/python-modules/milksnake/default.nix
··· 1 + { lib, buildPythonPackage, fetchPypi, cffi }: 2 + 3 + buildPythonPackage rec { 4 + pname = "milksnake"; 5 + version = "0.1.5"; 6 + 7 + src = fetchPypi { 8 + inherit pname version; 9 + extension = "zip"; 10 + sha256 = "120nprd8lqis7x7zy72536gk2j68f7gxm8gffmx8k4ygifvl7kfz"; 11 + }; 12 + 13 + propagatedBuildInputs = [ 14 + cffi 15 + ]; 16 + 17 + # tests rely on pip/venv 18 + doCheck = false; 19 + 20 + meta = with lib; { 21 + description = "A python library that extends setuptools for binary extensions"; 22 + homepage = https://github.com/getsentry/milksnake; 23 + license = licenses.asl20; 24 + maintainers = with maintainers; [ matthiasbeyer ]; 25 + }; 26 + }
+41 -10
pkgs/tools/misc/vdirsyncer/default.nix
··· 1 - { stdenv, fetchurl, python3Packages, glibcLocales }: 1 + { stdenv, python3Packages, glibcLocales, rustPlatform }: 2 2 3 3 # Packaging documentation at: 4 4 # https://github.com/untitaker/vdirsyncer/blob/master/docs/packaging.rst 5 5 let 6 6 pythonPackages = python3Packages; 7 - in 8 - pythonPackages.buildPythonApplication rec { 9 - version = "0.16.4"; 10 - name = "vdirsyncer-${version}"; 11 - 12 - src = fetchurl { 13 - url = "mirror://pypi/v/vdirsyncer/${name}.tar.gz"; 14 - sha256 = "03wva48bgv1ad3df6plc9b8xxh6k8bcaxrhlzwh81c9mzn5bspzv"; 7 + version = "0.17.0a2"; 8 + pname = "vdirsyncer"; 9 + name = pname + "-" + version; 10 + src = pythonPackages.fetchPypi { 11 + inherit pname version; 12 + sha256 = "0y464rsx5la6bp94z2g0nnkbl4nwfya08abynvifw4c84vs1gr4q"; 15 13 }; 14 + native = rustPlatform.buildRustPackage { 15 + name = name + "-native"; 16 + inherit src; 17 + sourceRoot = name + "/rust"; 18 + cargoSha256 = "1cr7xs11gbsc3x5slga9qahchwc22qq49amf28g4jgs9lzf57qis"; 19 + postInstall = '' 20 + mkdir $out/include $out/lib 21 + cp $out/bin/libvdirsyncer_rustext* $out/lib 22 + rm -r $out/bin 23 + cp target/vdirsyncer_rustext.h $out/include 24 + ''; 25 + }; 26 + in pythonPackages.buildPythonApplication rec { 27 + inherit version pname src; 16 28 17 29 propagatedBuildInputs = with pythonPackages; [ 18 30 click click-log click-threading ··· 32 20 requests 33 21 requests_oauthlib # required for google oauth sync 34 22 atomicwrites 23 + milksnake 35 24 ]; 36 25 37 - buildInputs = with pythonPackages; [hypothesis pytest pytest-localserver pytest-subtesthack setuptools_scm ] ++ [ glibcLocales ]; 26 + buildInputs = with pythonPackages; [ setuptools_scm ]; 27 + 28 + checkInputs = with pythonPackages; [ hypothesis pytest pytest-localserver pytest-subtesthack ] ++ [ glibcLocales ]; 29 + 30 + postPatch = '' 31 + sed -i "/cargo build/d" Makefile 32 + ''; 33 + 34 + preBuild = '' 35 + mkdir -p rust/target/release 36 + ln -s ${native}/lib/libvdirsyncer_rustext* rust/target/release/ 37 + ln -s ${native}/include/vdirsyncer_rustext.h rust/target/ 38 + ''; 38 39 39 40 LC_ALL = "en_US.utf8"; 40 41 42 + preCheck = '' 43 + ln -sf ../dist/tmpbuild/vdirsyncer/vdirsyncer/_native__lib.so vdirsyncer 44 + ''; 45 + 41 46 checkPhase = '' 47 + runHook preCheck 42 48 make DETERMINISTIC_TESTS=true test 49 + runHook postCheck 43 50 ''; 44 51 45 52 meta = with stdenv.lib; {
+2
pkgs/top-level/python-packages.nix
··· 7642 7642 7643 7643 micawber = callPackage ../development/python-modules/micawber { }; 7644 7644 7645 + milksnake = callPackage ../development/python-modules/milksnake { }; 7646 + 7645 7647 minimock = buildPythonPackage rec { 7646 7648 version = "1.2.8"; 7647 7649 name = "minimock-${version}";