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

Commits on Apr 3, 2020

  1. Copy the full SHA
    4b822bb View commit details
  2. datasette: 0.35 -> 0.39

    drewrisinger committed Apr 3, 2020
    Copy the full SHA
    fb25290 View commit details
  3. Merge pull request #84197 from drewrisinger/dr-pr-python-pint

    pythonPackages.pint: 0.9 -> 0.11
    bhipple authored Apr 3, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f6b382b View commit details
Showing with 55 additions and 24 deletions.
  1. +32 −21 pkgs/development/python-modules/datasette/default.nix
  2. +23 −3 pkgs/development/python-modules/pint/default.nix
53 changes: 32 additions & 21 deletions pkgs/development/python-modules/datasette/default.nix
Original file line number Diff line number Diff line change
@@ -1,49 +1,52 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, aiofiles
, click
, click-default-group
, janus
, jinja2
, hupper
, pint
, pluggy
, pytest
, uvicorn
# Check Inputs
, pytestCheckHook
, pytestrunner
, pytest-asyncio
, black
, aiohttp
, beautifulsoup4
, uvicorn
, asgiref
, aiofiles
}:

buildPythonPackage rec {
pname = "datasette";
version = "0.35";
version = "0.39";

src = fetchFromGitHub {
owner = "simonw";
repo = "datasette";
rev = version;
sha256 = "0v6af7agg27lapz1nbab07595v4hl2x5wm2f03drj81f7pm8y7hc";
sha256 = "07d46512bc9sdan9lv39sf1bwlf7vf1bfhcsm825vk7sv7g9kczd";
};

nativeBuildInputs = [ pytestrunner ];

propagatedBuildInputs = [
aiofiles
click
click-default-group
janus
jinja2
hupper
pint
pluggy
uvicorn
aiofiles
];

checkInputs = [
pytest
pytestCheckHook
pytest-asyncio
aiohttp
beautifulsoup4
@@ -53,24 +56,32 @@ buildPythonPackage rec {

postConfigure = ''
substituteInPlace setup.py \
--replace "click-default-group==1.2" "click-default-group" \
--replace "Sanic==0.7.0" "Sanic" \
--replace "hupper==1.0" "hupper" \
--replace "pint~=0.8.1" "pint" \
--replace "pluggy~=0.12.0" "pint" \
--replace "Jinja2==2.10.1" "Jinja2" \
--replace "uvicorn~=0.8.4" "uvicorn"
--replace "click~=7.1.1" "click" \
--replace "click-default-group~=1.2.2" "click-default-group" \
--replace "Jinja2~=2.10.3" "Jinja2" \
--replace "hupper~=1.9" "hupper" \
--replace "pint~=0.9" "pint" \
--replace "pluggy~=0.13.0" "pint" \
--replace "uvicorn~=0.11" "uvicorn" \
--replace "aiofiles~=0.4.0" "aiofiles" \
--replace "janus~=0.4.0" "janus" \
--replace "PyYAML~=5.3" "PyYAML"
'';

# many tests require network access
# test_black fails on darwin
checkPhase = ''
pytest --ignore tests/test_api.py \
--ignore tests/test_csv.py \
--ignore tests/test_html.py \
--ignore tests/test_black.py \
-k 'not facet'
'';
dontUseSetuptoolsCheck = true;
pytestFlagsArray = [
"--ignore=tests/test_api.py"
"--ignore=tests/test_csv.py"
"--ignore=tests/test_html.py"
"--ignore=tests/test_docs.py"
"--ignore=tests/test_black.py"
];
disabledTests = [
"facet"
"_invalid_database" # checks error message when connecting to invalid database
];

meta = with lib; {
description = "An instant JSON API for your SQLite databases";
26 changes: 23 additions & 3 deletions pkgs/development/python-modules/pint/default.nix
Original file line number Diff line number Diff line change
@@ -2,20 +2,40 @@
, buildPythonPackage
, fetchPypi
, isPy27
, pythonOlder
, funcsigs
, setuptools_scm
# Check Inputs
, pytestCheckHook
, numpy
, matplotlib
, uncertainties
}:

buildPythonPackage rec {
pname = "pint";
version = "0.9";
version = "0.11";

src = fetchPypi {
inherit version;
pname = "Pint";
sha256 = "32d8a9a9d63f4f81194c0014b3b742679dce81a26d45127d9810a68a561fe4e2";
sha256 = "0kfgnmcs6z9ndhzvwg2xzhpwxgyyagdsdz5dns1jy40fa1q113rh";
};

propagatedBuildInputs = lib.optional isPy27 funcsigs;
disabled = pythonOlder "3.6";

propagatedBuildInputs = [
setuptools_scm
] ++ lib.optional isPy27 funcsigs;

# Test suite explicitly requires pytest
checkInputs = [
pytestCheckHook
numpy
matplotlib
uncertainties
];
dontUseSetuptoolsCheck = true;

meta = with lib; {
description = "Physical quantities module";