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: 85d208ef3ca9
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ee7297065eb7
Choose a head ref
  • 3 commits
  • 4 files changed
  • 2 contributors

Commits on Mar 19, 2019

  1. python36Packages.hpack: fix build (#57808)

    (cherry picked from commit c357b53)
    alyssais authored and Robert Schütz committed Mar 19, 2019
    Copy the full SHA
    65fd49f View commit details
  2. python3Packages.priority: fix build (#57807)

    (cherry picked from commit bc3e7f8)
    alyssais authored and Robert Schütz committed Mar 19, 2019
    Copy the full SHA
    d2e06ac View commit details
  3. python.pkgs.mt-940: 4.13.0 -> 4.13.2

    (cherry picked from commit 1ca0569)
    Robert Schütz committed Mar 19, 2019
    Copy the full SHA
    ee72970 View commit details
5 changes: 0 additions & 5 deletions pkgs/development/python-modules/hpack/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, glibcLocales
}:

buildPythonPackage rec {
@@ -13,10 +12,6 @@ buildPythonPackage rec {
sha256 = "8eec9c1f4bfae3408a3f30500261f7e6a65912dc138526ea054f9ad98892e9d2";
};

buildInputs = [ glibcLocales ];

LANG = "en_US.UTF-8";

meta = with stdenv.lib; {
description = "Pure-Python HPACK header compression";
homepage = "http://hyper.rtfd.org";
9 changes: 4 additions & 5 deletions pkgs/development/python-modules/mt-940/default.nix
Original file line number Diff line number Diff line change
@@ -3,15 +3,16 @@
}:

buildPythonPackage rec {
version = "4.13.0";
version = "4.13.2";
pname = "mt-940";

# No tests in PyPI tarball
# See https://github.com/WoLpH/mt940/pull/72
src = fetchFromGitHub {
owner = "WoLpH";
repo = "mt940";
rev = "v${version}";
sha256 = "0p6z4ipj0drph3ryn8mnb3xn0vjfv54y1c5w5i9ixrxwz48h6bga";
sha256 = "1lvw3qyv7qhjabcvg55br8x4pnc7hv8xzzaf6wnr8cfjg0q7dzzg";
};

postPatch = ''
@@ -21,9 +22,7 @@ buildPythonPackage rec {

propagatedBuildInputs = lib.optional (!isPy3k) enum34;

LC_ALL="en_US.UTF-8";

checkInputs = [ pyyaml pytestpep8 pytest-flakes pytest glibcLocales ];
checkInputs = [ pyyaml pytestpep8 pytest-flakes pytest ];

checkPhase = ''
py.test
39 changes: 39 additions & 0 deletions pkgs/development/python-modules/priority/deadline.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
From 9d933c3c6535c1c63291e3d35f4ada9135d422df Mon Sep 17 00:00:00 2001
From: Alyssa Ross <hi@alyssa.is>
Date: Mon, 11 Mar 2019 02:08:43 +0000
Subject: [PATCH] Allow test_period_of_repetition to be slow

Recent versions of hypothesis default to a 200ms timeout, which wasn't
enough for my Thinkpad X220 to run this test. I've increased the timeout
for this single test to hopefully a reasonable amount for older
hardware.

(cherry picked from commit 752beb3a32b59f54168816da531c9d2a387f9715)
---
test/test_priority.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/test_priority.py b/test/test_priority.py
index c98a28d..013ce30 100644
--- a/test/test_priority.py
+++ b/test/test_priority.py
@@ -12,7 +12,7 @@ import itertools

import pytest

-from hypothesis import given
+from hypothesis import given, settings
from hypothesis.strategies import (
integers, lists, tuples, sampled_from
)
@@ -489,6 +489,7 @@ class TestPriorityTreeOutput(object):
fairness and equidistribution.
"""
@given(STREAMS_AND_WEIGHTS)
+ @settings(deadline=None)
def test_period_of_repetition(self, streams_and_weights):
"""
The period of repetition of a priority sequence is given by the sum of
--
2.19.2

7 changes: 6 additions & 1 deletion pkgs/development/python-modules/priority/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, pytest, hypothesis }:
{ lib, buildPythonPackage, fetchPypi, fetchpatch, pytest, hypothesis }:

buildPythonPackage rec {
pname = "priority";
@@ -9,6 +9,11 @@ buildPythonPackage rec {
sha256 = "1gpzn9k9zgks0iw5wdmad9b4dry8haiz2sbp6gycpjkzdld9dhbb";
};

patches = [
# https://github.com/python-hyper/priority/pull/135
./deadline.patch
];

checkInputs = [ pytest hypothesis ];
checkPhase = ''
PYTHONPATH="src:$PYTHONPATH" pytest