Merge master into staging-next

authored by

github-actions[bot] and committed by
GitHub
380cb1e9 f29a6f58

+263 -254
+10 -9
doc/languages-frameworks/python.section.md
··· 639 639 640 640 #### Using pythonImportsCheck 641 641 642 - Although unit tests are highly prefered to valid correctness of a package. Not 642 + Although unit tests are highly prefered to validate correctness of a package, not 643 643 all packages have test suites that can be ran easily, and some have none at all. 644 644 To help ensure the package still works, `pythonImportsCheck` can attempt to import 645 645 the listed modules. ··· 1569 1569 1570 1570 ### Contributing guidelines 1571 1571 1572 - Following rules are desired to be respected: 1572 + The following rules are desired to be respected: 1573 1573 1574 1574 * Python libraries are called from `python-packages.nix` and packaged with 1575 1575 `buildPythonPackage`. The expression of a library should be in 1576 1576 `pkgs/development/python-modules/<name>/default.nix`. 1577 - * Libraries in `pkgs/top-level/python-packages.nix` are sorted 1578 - alphanumerically to avoid merge conflicts and ease locating attributes. 1579 1577 * Python applications live outside of `python-packages.nix` and are packaged 1580 1578 with `buildPythonApplication`. 1581 1579 * Make sure libraries build for all Python interpreters. ··· 1585 1583 case, when you disable tests, leave a comment explaining why. 1586 1584 * Commit names of Python libraries should reflect that they are Python 1587 1585 libraries, so write for example `pythonPackages.numpy: 1.11 -> 1.12`. 1588 - * Attribute names in `python-packages.nix` should be normalized according to 1589 - [PEP 0503](https://www.python.org/dev/peps/pep-0503/#normalized-names). This 1590 - means that characters should be converted to lowercase and `.` and `_` should 1591 - be replaced by a single `-` (foo-bar-baz instead of Foo__Bar.baz ) 1592 - * Attribute names in `python-packages.nix` should be sorted alphanumerically. 1586 + * Attribute names in `python-packages.nix` as well as `pname`s should match the 1587 + library's name on PyPI, but be normalized according to [PEP 1588 + 0503](https://www.python.org/dev/peps/pep-0503/#normalized-names). This means 1589 + that characters should be converted to lowercase and `.` and `_` should be 1590 + replaced by a single `-` (foo-bar-baz instead of Foo__Bar.baz). 1591 + If necessary, `pname` has to be given a different value within `fetchPypi`. 1592 + * Attribute names in `python-packages.nix` should be sorted alphanumerically to 1593 + avoid merge conflicts and ease locating attributes.
+1 -1
nixos/doc/manual/Makefile
··· 1 1 .PHONY: all 2 - all: manual-combined.xml format 2 + all: manual-combined.xml 3 3 4 4 .PHONY: debug 5 5 debug: generated manual-combined.xml
+2 -1
nixos/doc/manual/development/writing-documentation.xml
··· 25 25 26 26 <screen> 27 27 <prompt>$ </prompt>cd /path/to/nixpkgs/nixos/doc/manual 28 - <prompt>$ </prompt>make 28 + <prompt>$ </prompt>nix-shell 29 + <prompt>nix-shell$ </prompt>make 29 30 </screen> 30 31 31 32 <para>
+1 -1
nixos/modules/services/networking/wireguard.nix
··· 238 238 wantedBy = [ "wireguard-${name}.service" ]; 239 239 requiredBy = [ "wireguard-${name}.service" ]; 240 240 before = [ "wireguard-${name}.service" ]; 241 - path = with pkgs; [ wireguard ]; 241 + path = with pkgs; [ wireguard-tools ]; 242 242 243 243 serviceConfig = { 244 244 Type = "oneshot";
+2 -2
pkgs/applications/audio/openmpt123/default.nix
··· 2 2 , usePulseAudio ? config.pulseaudio or false, libpulseaudio }: 3 3 4 4 let 5 - version = "0.5.5"; 5 + version = "0.5.6"; 6 6 in stdenv.mkDerivation { 7 7 pname = "openmpt123"; 8 8 inherit version; 9 9 10 10 src = fetchurl { 11 11 url = "https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-${version}+release.autotools.tar.gz"; 12 - sha256 = "sha256-8eAUg+vxpoDZ7AMMmvIPXypawPHgZCwYvVWTz6qc62s="; 12 + sha256 = "sha256-F96ngrM0wUb0rNlIx8Mf/dKvyJnrNH6+Ab4WBup59Lg="; 13 13 }; 14 14 15 15 enableParallelBuilding = true;
+1 -1
pkgs/applications/networking/irc/weechat/scripts/weechat-notify-send/default.nix
··· 24 24 25 25 meta = with lib; { 26 26 description = "A WeeChat script that sends highlight and message notifications through notify-send"; 27 - homepage = "https://github.com/s3rvac/weechat-notify-srnd"; 27 + homepage = "https://github.com/s3rvac/weechat-notify-send"; 28 28 license = licenses.mit; 29 29 maintainers = with maintainers; [ tobim ]; 30 30 };
-20
pkgs/applications/networking/pyload/beautifulsoup.nix
··· 1 - { pythonPackages, isPy3k, pkgs }: 2 - 3 - pythonPackages.buildPythonPackage { 4 - name = "beautifulsoup-3.2.1"; 5 - disabled = isPy3k; 6 - 7 - src = pkgs.fetchurl { 8 - url = "http://www.crummy.com/software/BeautifulSoup/download/3.x/BeautifulSoup-3.2.1.tar.gz"; 9 - sha256 = "1nshbcpdn0jpcj51x0spzjp519pkmqz0n0748j7dgpz70zlqbfpm"; 10 - }; 11 - 12 - # error: invalid command 'test' 13 - doCheck = false; 14 - 15 - meta = { 16 - homepage = "http://www.crummy.com/software/BeautifulSoup/"; 17 - license = "bsd"; 18 - description = "Undemanding HTML/XML parser"; 19 - }; 20 - }
-60
pkgs/applications/networking/pyload/default.nix
··· 1 - { lib, fetchFromGitHub, fetchpatch, pythonPackages, gocr, unrar, rhino, spidermonkey_38 }: 2 - 3 - let 4 - beautifulsoup = pythonPackages.callPackage ./beautifulsoup.nix { 5 - inherit pythonPackages; 6 - }; 7 - 8 - in pythonPackages.buildPythonApplication rec { 9 - version = "0.4.9-next"; 10 - name = "pyLoad-" + version; 11 - 12 - src = fetchFromGitHub { 13 - owner = "pyload"; 14 - repo = "pyload"; 15 - rev = "721ea9f089217b9cb0f2799c051116421faac081"; 16 - sha256 = "1ad4r9slx1wgvd2fs4plfbpzi4i2l2bk0lybzsb2ncgh59m87h54"; 17 - }; 18 - 19 - patches = 20 - let 21 - # gets merged in next release version of pyload 22 - configParserPatch = fetchpatch { 23 - url = "https://patch-diff.githubusercontent.com/raw/pyload/pyload/pull/2625.diff"; 24 - sha256 = "1bisgx78kcr5c0x0i3h0ch5mykns5wx5wx7gvjj0pc71lfzlxzb9"; 25 - }; 26 - setupPyPatch = fetchpatch { 27 - url = "https://patch-diff.githubusercontent.com/raw/pyload/pyload/pull/2638.diff"; 28 - sha256 = "006g4qbl582262ariflbyfrszcx8ck2ac1cpry1f82f76p4cgf6z"; 29 - }; 30 - in [ configParserPatch setupPyPatch ]; 31 - 32 - buildInputs = [ 33 - unrar rhino spidermonkey_38 gocr pythonPackages.paver 34 - ]; 35 - 36 - propagatedBuildInputs = with pythonPackages; [ 37 - pycurl jinja2 beaker thrift simplejson pycrypto feedparser tkinter 38 - beautifulsoup send2trash 39 - ]; 40 - 41 - #remove this once the PR patches above are merged. Needed because githubs diff endpoint 42 - #does not support diff -N 43 - prePatch = '' 44 - touch module/config/__init__.py 45 - ''; 46 - 47 - preBuild = '' 48 - ${pythonPackages.paver}/bin/paver generate_setup 49 - ''; 50 - 51 - doCheck = false; 52 - 53 - meta = with lib; { 54 - description = "Free and open source downloader for 1-click-hosting sites"; 55 - homepage = "https://github.com/pyload/pyload"; 56 - license = licenses.gpl3; 57 - maintainers = [ maintainers.mahe ]; 58 - platforms = platforms.all; 59 - }; 60 - }
+2 -2
pkgs/applications/office/gnumeric/default.nix
··· 7 7 inherit (python3Packages) python pygobject3; 8 8 in stdenv.mkDerivation rec { 9 9 pname = "gnumeric"; 10 - version = "1.12.48"; 10 + version = "1.12.49"; 11 11 12 12 src = fetchurl { 13 13 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 14 - sha256 = "14556b0vyxdvdwjlin0rv7jk0vq4nplbmvp9j89bhkfk84xf7k2p"; 14 + sha256 = "kcBy7JXDLgCxVv/oAVyTsyuO3zaPkEFDYZPPoy6E7Vc="; 15 15 }; 16 16 17 17 configureFlags = [ "--disable-component" ];
+23 -13
pkgs/applications/version-management/gitea/default.nix
··· 1 - { lib, buildGoPackage, fetchurl, makeWrapper 2 - , git, bash, gzip, openssh, pam 1 + { lib 2 + , buildGoPackage 3 + , fetchurl 4 + , makeWrapper 5 + , git 6 + , bash 7 + , gzip 8 + , openssh 9 + , pam 3 10 , sqliteSupport ? true 4 11 , pamSupport ? true 5 12 , nixosTests ··· 9 16 10 17 buildGoPackage rec { 11 18 pname = "gitea"; 12 - version = "1.13.5"; 19 + version = "1.13.6"; 13 20 21 + # not fetching directly from the git repo, because that lacks several vendor files for the web UI 14 22 src = fetchurl { 15 23 url = "https://github.com/go-gitea/gitea/releases/download/v${version}/gitea-src-${version}.tar.gz"; 16 - sha256 = "08c5gp4qp65mnq4ggzfmyc7n3zcp0js86fz4nj5p249zs9vn1ypd"; 24 + sha256 = "1f0fsqcmmqygv0r796ddr2fjhh333i9nr0cqk9x2b2kbs1z264vf"; 17 25 }; 18 26 19 27 unpackPhase = '' ··· 36 44 37 45 buildInputs = optional pamSupport pam; 38 46 39 - preBuild = let 40 - tags = optional pamSupport "pam" 47 + preBuild = 48 + let 49 + tags = optional pamSupport "pam" 41 50 ++ optional sqliteSupport "sqlite sqlite_unlock_notify"; 42 - tagsString = concatStringsSep " " tags; 43 - in '' 44 - export buildFlagsArray=( 45 - -tags="${tagsString}" 46 - -ldflags='-X "main.Version=${version}" -X "main.Tags=${tagsString}"' 47 - ) 48 - ''; 51 + tagsString = concatStringsSep " " tags; 52 + in 53 + '' 54 + export buildFlagsArray=( 55 + -tags="${tagsString}" 56 + -ldflags='-X "main.Version=${version}" -X "main.Tags=${tagsString}"' 57 + ) 58 + ''; 49 59 50 60 outputs = [ "out" "data" ]; 51 61
+3 -3
pkgs/development/interpreters/joker/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "joker"; 5 - version = "0.15.7"; 5 + version = "0.16.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 rev = "v${version}"; 9 9 owner = "candid82"; 10 10 repo = "joker"; 11 - sha256 = "01mlizkflajad4759yl60ymibymrvanhc22jaffj50k9b77v97kq"; 11 + sha256 = "sha256-ckbKxWzcISo9yOXuwgOiSfR2hs+5od0Ru0Ku2I52Gu8="; 12 12 }; 13 13 14 - vendorSha256 = "031ban30kx84r54fj9aq96pwkz9nqh4p9yzs4l8i1wqmy52rldvl"; 14 + vendorSha256 = "sha256-AYoespfzFLP/jIIxbw5K653wc7sSfLY8K7di8GZ64wA="; 15 15 16 16 doCheck = false; 17 17
-72
pkgs/development/interpreters/spidermonkey/38.nix
··· 1 - { lib, stdenv, fetchurl, pkg-config, gnused_422, perl, python2, zip, libffi, readline, icu, zlib, buildPackages 2 - , libobjc }: 3 - 4 - with lib; 5 - 6 - stdenv.mkDerivation rec { 7 - version = "38.8.0"; 8 - pname = "spidermonkey"; 9 - 10 - src = fetchurl { 11 - url = "mirror://mozilla/firefox/releases/${version}esr/source/firefox-${version}esr.source.tar.bz2"; 12 - sha256 = "10lrync6cxnjlnadc0j3vg8r2dq9b3wwanw8qj1h6ncxwb7asxcl"; 13 - }; 14 - 15 - buildInputs = [ libffi readline icu zlib ] 16 - ++ lib.optional stdenv.isDarwin libobjc; 17 - nativeBuildInputs = [ pkg-config perl python2 zip gnused_422 ]; 18 - 19 - postUnpack = "sourceRoot=\${sourceRoot}/js/src"; 20 - 21 - preConfigure = '' 22 - export CXXFLAGS="-fpermissive" 23 - export LIBXUL_DIST=$out 24 - export PYTHON="${buildPackages.python2.interpreter}" 25 - ''; 26 - 27 - configureFlags = [ 28 - "--enable-threadsafe" 29 - "--with-system-ffi" 30 - "--enable-posix-nspr-emulation" 31 - "--with-system-zlib" 32 - "--with-system-icu" 33 - "--enable-readline" 34 - 35 - # enabling these because they're wanted by 0ad. They may or may 36 - # not be good defaults for other uses. 37 - "--enable-gcgenerational" 38 - "--enable-shared-js" 39 - ] ++ optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ 40 - # Spidermonkey seems to use different host/build terminology for cross 41 - # compilation here. 42 - "--host=${stdenv.buildPlatform.config}" 43 - "--target=${stdenv.hostPlatform.config}" 44 - ]; 45 - 46 - configurePlatforms = []; 47 - 48 - depsBuildBuild = [ buildPackages.stdenv.cc ]; 49 - 50 - # This addresses some build system bug. It's quite likely to be safe 51 - # to re-enable parallel builds if the source revision changes. 52 - enableParallelBuilding = true; 53 - 54 - postFixup = '' 55 - # The headers are symlinks to a directory that doesn't get put 56 - # into $out, so they end up broken. Fix that by just resolving the 57 - # symlinks. 58 - for i in $(find $out -type l); do 59 - cp --remove-destination "$(readlink "$i")" "$i"; 60 - done 61 - ''; 62 - 63 - meta = with lib; { 64 - description = "Mozilla's JavaScript engine written in C/C++"; 65 - homepage = "https://developer.mozilla.org/en/SpiderMonkey"; 66 - # TODO: MPL/GPL/LGPL tri-license. 67 - 68 - maintainers = [ maintainers.abbradar ]; 69 - platforms = platforms.unix; 70 - knownVulnerabilities = [ "SpiderMonkey 38 is outdated and contains known security vulnerabilities." ]; # as per https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/38 71 - }; 72 - }
+32 -9
pkgs/development/libraries/udunits/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, autoreconfHook, 2 - texinfo, bison, flex, expat, file 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , autoreconfHook 5 + , bison 6 + , expat 7 + , file 8 + , flex 9 + , texinfo 3 10 }: 4 11 5 12 stdenv.mkDerivation rec { 6 13 pname = "udunits"; 7 - version = "2.2.27.6"; 14 + version = "unstable-2021-03-17"; 8 15 9 16 src = fetchFromGitHub { 10 17 owner = "Unidata"; 11 18 repo = "UDUNITS-2"; 12 - rev = "v${version}"; 13 - sha256 = "0621pac24c842dyipzaa59rh6pza9phdqi3snd4cq4pib0wjw6gm"; 19 + rev = "c83da987387db1174cd2266b73dd5dd556f4476b"; 20 + hash = "sha256-+HW21+r65OroCxMK2/B5fe7zHs4hD4xyoJK2bhdJGyQ="; 14 21 }; 15 22 16 - nativeBuildInputs = [ autoreconfHook texinfo bison flex file ]; 17 - buildInputs = [ expat ]; 23 + nativeBuildInputs = [ 24 + autoreconfHook 25 + texinfo 26 + bison 27 + flex 28 + file 29 + ]; 30 + buildInputs = [ 31 + expat 32 + ]; 18 33 19 34 meta = with lib; { 20 35 homepage = "https://www.unidata.ucar.edu/software/udunits/"; 21 36 description = "A C-based package for the programatic handling of units of physical quantities"; 22 - license = licenses.bsdOriginal; 37 + longDescription = '' 38 + The UDUNITS package supports units of physical quantities. Its C library 39 + provides for arithmetic manipulation of units and for conversion of 40 + numeric values between compatible units. The package contains an extensive 41 + unit database, which is in XML format and user-extendable. The package 42 + also contains a command-line utility for investigating units and 43 + converting values. 44 + ''; 45 + license = licenses.asl20; 46 + maintainers = with maintainers; [ AndersonTorres pSub ]; 23 47 platforms = platforms.linux; 24 - maintainers = with maintainers; [ pSub ]; 25 48 }; 26 49 }
+37
pkgs/development/python-modules/android-backup/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pycrypto 5 + , pythonOlder 6 + , enum34 7 + , python 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "android-backup"; 12 + version = "0.2.0"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "bluec0re"; 16 + repo = "android-backup-tools"; 17 + rev = "v${version}"; 18 + sha256 = "0c436hv64ddqrjs77pa7z6spiv49pjflbmgg31p38haj5mzlrqvw"; 19 + }; 20 + 21 + propagatedBuildInputs = [ 22 + pycrypto 23 + ] ++ lib.optional (pythonOlder "3.4") enum34; 24 + 25 + checkPhase = '' 26 + ${python.interpreter} -m android_backup.tests 27 + ''; 28 + 29 + pythonImportsCheck = [ "android_backup" ]; 30 + 31 + meta = with lib; { 32 + description = "Unpack and repack android backups"; 33 + homepage = https://github.com/bluec0re/android-backup-tools; 34 + license = licenses.asl20; 35 + maintainers = with maintainers; [ dotlambda ]; 36 + }; 37 + }
+2 -2
pkgs/development/python-modules/azure-eventgrid/default.nix
··· 9 9 10 10 buildPythonPackage rec { 11 11 pname = "azure-eventgrid"; 12 - version = "4.0.0"; 12 + version = "4.1.0"; 13 13 14 14 src = fetchPypi { 15 15 inherit pname version; 16 16 extension = "zip"; 17 - sha256 = "a8b1d4aa9386efa923bad1a07da9f9098facd3b654d036a900a54de77d06eabe"; 17 + sha256 = "c4f29b2d9b717dad7919048f0a458dd84f83637c3d5c8f5a7e64634b22086719"; 18 18 }; 19 19 20 20 propagatedBuildInputs = [
+4 -8
pkgs/development/python-modules/croniter/default.nix
··· 2 2 , buildPythonPackage 3 3 , fetchPypi 4 4 , python-dateutil 5 - , pytest 5 + , pytestCheckHook 6 6 , pytz 7 7 , natsort 8 8 , tzlocal ··· 10 10 11 11 buildPythonPackage rec { 12 12 pname = "croniter"; 13 - version = "0.3.37"; 13 + version = "1.0.9"; 14 14 15 15 src = fetchPypi { 16 16 inherit pname version; 17 - sha256 = "12ced475dfc107bf7c6c1440af031f34be14cd97bbbfaf0f62221a9c11e86404"; 17 + sha256 = "708532f70584207e23ef2989ca40f367e6238bfe050133a1aff43e1e0e6f6092"; 18 18 }; 19 19 20 20 propagatedBuildInputs = [ ··· 23 23 ]; 24 24 25 25 checkInputs = [ 26 - pytest 26 + pytestCheckHook 27 27 pytz 28 28 tzlocal 29 29 ]; 30 - 31 - checkPhase = '' 32 - pytest src/croniter 33 - ''; 34 30 35 31 meta = with lib; { 36 32 description = "croniter provides iteration for datetime object with cron like format";
+2 -2
pkgs/development/python-modules/databricks-connect/default.nix
··· 2 2 3 3 buildPythonPackage rec { 4 4 pname = "databricks-connect"; 5 - version = "7.3.10"; 5 + version = "8.1.0"; 6 6 7 7 src = fetchPypi { 8 8 inherit pname version; 9 - sha256 = "8aa75740900f9b4bcc6d3f2bd815408dba30dc9a512bcc950b93e7353ec45133"; 9 + sha256 = "3726c648cc60796294356e2617acc534d2503824ccfbdff26abbea595eb83135"; 10 10 }; 11 11 12 12 sourceRoot = ".";
+3 -3
pkgs/development/python-modules/mautrix/default.nix
··· 1 1 { lib, buildPythonPackage, fetchPypi, aiohttp, pythonOlder 2 - , sqlalchemy, ruamel_yaml, CommonMark, lxml, fetchpatch 2 + , sqlalchemy, ruamel_yaml, CommonMark, lxml 3 3 }: 4 4 5 5 buildPythonPackage rec { 6 6 pname = "mautrix"; 7 - version = "0.8.16"; 7 + version = "0.8.17"; 8 8 9 9 src = fetchPypi { 10 10 inherit pname version; 11 - sha256 = "ccaa1691affa5f257e13d61f7c46088ff0affdd782331b01bfdcbd0b3eb5e10e"; 11 + sha256 = "9a15a8e39f9d0b36c91dfe0f5dd1efc8752cc1d317057840a3dbffd6ee90e068"; 12 12 }; 13 13 14 14 propagatedBuildInputs = [
+44 -20
pkgs/development/python-modules/python-miio/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 + , pythonOlder 3 4 , fetchPypi 4 - , appdirs 5 + , poetry 5 6 , click 6 - , construct 7 - , croniter 8 7 , cryptography 9 - , importlib-metadata 10 - , pytest 11 - , pytest-mock 8 + , construct 12 9 , zeroconf 13 10 , attrs 14 11 , pytz 12 + , appdirs 15 13 , tqdm 16 14 , netifaces 15 + , android-backup 16 + , importlib-metadata 17 + , croniter 18 + , defusedxml 19 + , pytestCheckHook 20 + , pytest-mock 21 + , pyyaml 17 22 }: 18 23 19 24 20 25 buildPythonPackage rec { 21 26 pname = "python-miio"; 22 - version = "0.5.4"; 27 + version = "0.5.5.1"; 28 + 29 + disabled = pythonOlder "3.6"; 30 + 31 + format = "pyproject"; 23 32 24 33 src = fetchPypi { 25 34 inherit pname version; 26 - sha256 = "5a6fd3bb2cc2f75cdfe5673f36a5a418144d08add6e53b384cb146e99f27bd39"; 35 + sha256 = "sha256-3IBObrytkn6rLUT+wMlwzreqQ4AfCgxiMTJm2Iwm+5E="; 27 36 }; 28 37 29 38 postPatch = '' 30 - substituteInPlace setup.py \ 31 - --replace "zeroconf>=0.25.1,<0.26.0" "zeroconf" 32 - substituteInPlace setup.py \ 33 - --replace "pytz>=2019.3,<2020.0" "pytz" 34 - substituteInPlace setup.py \ 35 - --replace "cryptography>=2.9,<3.0" "cryptography" 36 - ''; 39 + substituteInPlace pyproject.toml \ 40 + --replace 'croniter = "^0"' 'croniter = "*"' \ 41 + --replace 'defusedxml = "^0.6"' 'defusedxml = "*"' 42 + ''; 37 43 38 - checkInputs = [ pytest pytest-mock]; 39 - propagatedBuildInputs = [ appdirs click construct croniter cryptography importlib-metadata zeroconf attrs pytz tqdm netifaces ]; 44 + nativeBuildInputs = [ 45 + poetry 46 + ]; 40 47 41 - checkPhase = '' 42 - pytest 43 - ''; 48 + propagatedBuildInputs = [ 49 + click 50 + cryptography 51 + construct 52 + zeroconf 53 + attrs 54 + pytz 55 + appdirs 56 + tqdm 57 + netifaces 58 + android-backup 59 + croniter 60 + defusedxml 61 + ] ++ lib.optional (pythonOlder "3.8") importlib-metadata; 62 + 63 + checkInputs = [ 64 + pytestCheckHook 65 + pytest-mock 66 + pyyaml 67 + ]; 44 68 45 69 meta = with lib; { 46 70 description = "Python library for interfacing with Xiaomi smart appliances";
+15 -5
pkgs/development/python-modules/sasmodels/default.nix
··· 1 - { lib, fetchFromGitHub, buildPythonPackage, pytest, numpy, scipy, matplotlib, docutils 2 - , pyopencl, opencl-headers 1 + { lib 2 + , fetchFromGitHub 3 + , buildPythonPackage 4 + , pytest_5 5 + , numpy 6 + , scipy 7 + , matplotlib 8 + , docutils 9 + , pyopencl 10 + , opencl-headers 3 11 }: 4 12 5 13 buildPythonPackage rec { 6 14 pname = "sasmodels"; 7 - version = "1.0.2"; 15 + version = "1.0.4"; 8 16 9 17 src = fetchFromGitHub { 10 18 owner = "SasView"; 11 19 repo = "sasmodels"; 12 20 rev = "v${version}"; 13 - sha256 = "1qvh7q0fkls5r8r9mrph6igcvv8x3qsslqsc5jf1n20alcs5zjrl"; 21 + sha256 = "0h2k81dm92sm0z086qy3ipw6y6cfgpb7ppl7lhjmx6816s3k50sa"; 14 22 }; 15 23 16 24 buildInputs = [ opencl-headers ]; 17 - checkInputs = [ pytest ]; 25 + # Note: the 1.0.5 release should be compatible with pytest6, so this can 26 + # be set back to 'pytest' at that point 27 + checkInputs = [ pytest_5 ]; 18 28 propagatedBuildInputs = [ docutils matplotlib numpy scipy pyopencl ]; 19 29 20 30 checkPhase = ''
+4 -3
pkgs/development/python-modules/xdis/default.nix
··· 6 6 7 7 buildPythonPackage rec { 8 8 pname = "xdis"; 9 - version = "5.0.5"; 9 + version = "5.0.8"; 10 10 disabled = isPy27; 11 11 12 12 src = fetchFromGitHub { 13 13 owner = "rocky"; 14 14 repo = "python-xdis"; 15 15 rev = version; 16 - sha256 = "01248nh8y5szin6ymd3hrl8qnsg4xijsk3lxyks8zk9cjh008lmq"; 16 + sha256 = "01g1bk7rscwmvr2i183z0y2bs1iw7bxk7c5rcf9gf25242nppv6a"; 17 17 }; 18 18 19 19 checkInputs = [ pytest ]; ··· 22 22 checkPhase = '' 23 23 make check 24 24 ''; 25 + pythonImportsCheck = [ "xdis" ]; 25 26 26 27 meta = with lib; { 27 28 description = "Python cross-version byte-code disassembler and marshal routines"; 28 29 homepage = "https://github.com/rocky/python-xdis/"; 29 - license = licenses.gpl2; 30 + license = licenses.gpl2Plus; 30 31 }; 31 32 }
+3 -3
pkgs/development/tools/continuous-integration/buildkite-agent/default.nix
··· 2 2 makeWrapper, coreutils, git, openssh, bash, gnused, gnugrep }: 3 3 buildGoModule rec { 4 4 name = "buildkite-agent-${version}"; 5 - version = "3.27.0"; 5 + version = "3.28.1"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "buildkite"; 9 9 repo = "agent"; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-JfOCht+awc0I22vtRD5hgowgdVkcJR3qSxnxLoc3XZY="; 11 + sha256 = "sha256-5YOXYOAh/0fOagcqdK2IEwm5XDCxyfTeTzwBGtsQRCs="; 12 12 }; 13 13 14 - vendorSha256 = "sha256-4zKe8y+9fedvCt/XmPf0HxtyqLz+FP4Ylt6k9KBjaIw="; 14 + vendorSha256 = "sha256-3UXZxeiL0WO4X/3/hW8ubL1TormGbn9X/k0PX+/cLuM="; 15 15 16 16 postPatch = '' 17 17 substituteInPlace bootstrap/shell/shell.go --replace /bin/bash ${bash}/bin/bash
+30
pkgs/tools/misc/github-backup/default.nix
··· 1 + { lib 2 + , python3 3 + , git 4 + , git-lfs 5 + }: 6 + 7 + python3.pkgs.buildPythonApplication rec { 8 + pname = "github-backup"; 9 + version = "0.39.0"; 10 + 11 + src = python3.pkgs.fetchPypi { 12 + inherit pname version; 13 + sha256 = "71829df4bdbe5bd55c324a97008405a6b4c6113edb1a2a6a8b73a7059fe64a47"; 14 + }; 15 + 16 + makeWrapperArgs = [ 17 + "--prefix" "PATH" ":" (lib.makeBinPath [ git git-lfs ]) 18 + ]; 19 + 20 + # has no unit tests 21 + doCheck = false; 22 + 23 + meta = with lib; { 24 + description = "Backup a github user or organization"; 25 + homepage = "https://github.com/josegonzalez/python-github-backup"; 26 + changelog = "https://github.com/josegonzalez/python-github-backup/blob/${version}/CHANGES.rst"; 27 + license = licenses.mit; 28 + maintainers = with maintainers; [ dotlambda ]; 29 + }; 30 + }
+2 -2
pkgs/tools/misc/plowshare/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, makeWrapper, curl, recode, spidermonkey_38 }: 1 + { lib, stdenv, fetchFromGitHub, makeWrapper, curl, recode, spidermonkey_78 }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 ··· 20 20 make PREFIX="$out" install 21 21 22 22 for fn in plow{del,down,list,mod,probe,up}; do 23 - wrapProgram "$out/bin/$fn" --prefix PATH : "${lib.makeBinPath [ curl recode spidermonkey_38 ]}" 23 + wrapProgram "$out/bin/$fn" --prefix PATH : "${lib.makeBinPath [ curl recode spidermonkey_78 ]}" 24 24 done 25 25 ''; 26 26
+3 -3
pkgs/tools/misc/starship/default.nix
··· 11 11 12 12 rustPlatform.buildRustPackage rec { 13 13 pname = "starship"; 14 - version = "0.50.0"; 14 + version = "0.51.0"; 15 15 16 16 src = fetchFromGitHub { 17 17 owner = "starship"; 18 18 repo = pname; 19 19 rev = "v${version}"; 20 - sha256 = "1bnnqrxsmp3z2qksd8h4lfbq4kxxy1cg4yynadz66lxyzabv2v21"; 20 + sha256 = "1bmnwvjhw2ba7yqn9if83d57b8qbrbqgy2br8q2drz4ylk0gjirg"; 21 21 }; 22 22 23 23 nativeBuildInputs = [ installShellFiles ] ++ lib.optionals stdenv.isLinux [ pkg-config ]; ··· 32 32 done 33 33 ''; 34 34 35 - cargoSha256 = "0plk47i2xrn3x5yr3gw3pq74maqf4krb8d6i4sf8gil4mnpcgxir"; 35 + cargoSha256 = "1d4ca8yzx437x53i7z2kddv9db89zy6ywbgl6y1cwwd6wscbrxcq"; 36 36 37 37 preCheck = '' 38 38 HOME=$TMPDIR
+27
pkgs/tools/security/sipvicious/default.nix
··· 1 + { lib 2 + , buildPythonApplication 3 + , fetchFromGitHub 4 + }: 5 + 6 + buildPythonApplication rec { 7 + pname = "sipvicious"; 8 + version = "0.3.2"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "EnableSecurity"; 12 + repo = pname; 13 + rev = "v${version}"; 14 + sha256 = "0hna4xyjhdwi6z2aqqp25ydkb1qznlil95w2iqrr576wcrciznd5"; 15 + }; 16 + 17 + # Project has no tests 18 + doCheck = false; 19 + pythonImportsCheck = [ "sipvicious" ]; 20 + 21 + meta = with lib; { 22 + description = " Set of tools to audit SIP based VoIP systems"; 23 + homepage = "https://github.com/EnableSecurity/sipvicious"; 24 + license = with licenses; [ gpl3Plus ]; 25 + maintainers = with maintainers; [ fab ]; 26 + }; 27 + }
+2 -2
pkgs/tools/text/jsawk/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, makeWrapper, spidermonkey_38 }: 1 + { lib, stdenv, fetchFromGitHub, makeWrapper, spidermonkey_78 }: 2 2 3 3 stdenv.mkDerivation { 4 4 pname = "jsawk"; ··· 15 15 mkdir -p $out/bin 16 16 cp $src/jsawk $out/bin/ 17 17 wrapProgram $out/bin/jsawk \ 18 - --prefix PATH : "${spidermonkey_38}/bin" 18 + --prefix PATH : "${spidermonkey_78}/bin" 19 19 ''; 20 20 21 21 meta = {
+2
pkgs/top-level/aliases.nix
··· 565 565 procps-ng = procps; # added 2018-06-08 566 566 prometheus-cups-exporter = throw "outdated and broken by design; removed by developer."; # added 2021-03-16 567 567 pygmentex = texlive.bin.pygmentex; # added 2019-12-15 568 + pyload = throw "pyload has been removed from nixpkgs, as it was unmaintained."; # added 2021-03-21 568 569 pyo3-pack = maturin; 569 570 pmenu = throw "pmenu has been removed from nixpkgs, as its maintainer is no longer interested in the package."; # added 2019-12-10 570 571 pulseaudioLight = pulseaudio; # added 2018-04-25 ··· 695 696 speedtest_cli = speedtest-cli; # added 2015-02-17 696 697 spice_gtk = spice-gtk; # added 2018-02-25 697 698 spice_protocol = spice-protocol; # added 2018-02-25 699 + spidermonkey_38 = throw "spidermonkey_38 has been removed. Please use spidermonkey_78 instead."; # added 2021-03-21 698 700 spidermonkey_52 = throw "spidermonkey_52 has been removed. Please use spidermonkey_78 instead."; # added 2019-10-16 699 701 spidermonkey_60 = throw "spidermonkey_60 has been removed. Please use spidermonkey_78 instead."; # added 2021-03-21 700 702 spring-boot = spring-boot-cli; # added 2020-04-24
+4 -7
pkgs/top-level/all-packages.nix
··· 4791 4791 4792 4792 gitfs = callPackage ../tools/filesystems/gitfs { }; 4793 4793 4794 + github-backup = callPackage ../tools/misc/github-backup { }; 4795 + 4794 4796 gitin = callPackage ../applications/version-management/git-and-tools/gitin { }; 4795 4797 4796 4798 gitinspector = callPackage ../applications/version-management/gitinspector { }; ··· 8082 8084 simplescreenrecorder = libsForQt5.callPackage ../applications/video/simplescreenrecorder { }; 8083 8085 8084 8086 sipsak = callPackage ../tools/networking/sipsak { }; 8087 + 8088 + sipvicious = python3Packages.callPackage ../tools/security/sipvicious { }; 8085 8089 8086 8090 siril = callPackage ../applications/science/astronomy/siril { }; 8087 8091 ··· 11800 11804 sparkleshare = callPackage ../applications/version-management/sparkleshare { }; 11801 11805 11802 11806 spidermonkey_1_8_5 = callPackage ../development/interpreters/spidermonkey/1.8.5.nix { }; 11803 - spidermonkey_38 = callPackage ../development/interpreters/spidermonkey/38.nix ({ 11804 - inherit (darwin) libobjc; 11805 - } // (lib.optionalAttrs (stdenv.hostPlatform.isi686 && stdenv.cc.isGNU) { 11806 - stdenv = gcc6Stdenv; # with gcc-7: undefined reference to `__divmoddi4' 11807 - })); 11808 11807 spidermonkey_68 = callPackage ../development/interpreters/spidermonkey/68.nix { }; 11809 11808 spidermonkey_78 = callPackage ../development/interpreters/spidermonkey/78.nix { }; 11810 11809 ··· 29650 29649 protocol = python3Packages.callPackage ../applications/networking/protocol { }; 29651 29650 29652 29651 pykms = callPackage ../tools/networking/pykms { }; 29653 - 29654 - pyload = callPackage ../applications/networking/pyload {}; 29655 29652 29656 29653 pyupgrade = with python3Packages; toPythonApplication pyupgrade; 29657 29654
+2
pkgs/top-level/python-packages.nix
··· 370 370 371 371 amqplib = callPackage ../development/python-modules/amqplib { }; 372 372 373 + android-backup = callPackage ../development/python-modules/android-backup { }; 374 + 373 375 androidtv = callPackage ../development/python-modules/androidtv { }; 374 376 375 377 androguard = callPackage ../development/python-modules/androguard { };