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

Commits on Nov 20, 2020

  1. pythonPackages.littleutils: init at 0.2.2

    jluttine authored and Jonathan Ringer committed Nov 20, 2020
    Copy the full SHA
    b8fa662 View commit details
  2. pythonPackages.stack-data: init at 0.0.7

    jluttine authored and Jonathan Ringer committed Nov 20, 2020
    Copy the full SHA
    854f78d View commit details
Showing with 83 additions and 0 deletions.
  1. +25 −0 pkgs/development/python-modules/littleutils/default.nix
  2. +54 −0 pkgs/development/python-modules/stack-data/default.nix
  3. +4 −0 pkgs/top-level/python-packages.nix
25 changes: 25 additions & 0 deletions pkgs/development/python-modules/littleutils/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ buildPythonPackage
, fetchPypi
, lib
}:

buildPythonPackage rec {
pname = "littleutils";
version = "0.2.2";

src = fetchPypi {
inherit pname version;
sha256 = "0vwijrylppmk0nbddqvn527r9cg3zw8d6zk6r58hslry42jf7jp6";
};

# This tiny package has no unit tests at all
doCheck = false;
pythonImportsCheck = [ "littleutils" ];

meta = with lib; {
description = "Small collection of Python utility functions";
homepage = "https://github.com/alexmojaki/littleutils";
license = licenses.mit;
maintainers = with maintainers; [ jluttine ];
};
}
54 changes: 54 additions & 0 deletions pkgs/development/python-modules/stack-data/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{ asttokens
, buildPythonPackage
, executing
, fetchFromGitHub
, git
, lib
, littleutils
, pure-eval
, pygments
, pytestCheckHook
, setuptools_scm
, toml
, typeguard
}:

buildPythonPackage rec {
pname = "stack_data";
version = "0.0.7";

src = fetchFromGitHub {
owner = "alexmojaki";
repo = pname;
rev = "v${version}";
sha256 = "148lhxihak8jm5dvryhsiykmn3s4mrlba8ki4dy1nbd8jnz06a4w";
};

SETUPTOOLS_SCM_PRETEND_VERSION = version;

nativeBuildInputs = [
git
setuptools_scm
toml
];

propagatedBuildInputs = [
asttokens
executing
pure-eval
];

checkInputs = [
littleutils
pygments
pytestCheckHook
typeguard
];

meta = with lib; {
description = "Extract data from stack frames and tracebacks";
homepage = "https://github.com/alexmojaki/stack_data/";
license = licenses.mit;
maintainers = with maintainers; [ jluttine ];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -3517,6 +3517,8 @@ in {

lirc = disabledIf isPy27 (toPythonModule (pkgs.lirc.override { python3 = python; }));

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

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

livereload = callPackage ../development/python-modules/livereload { };
@@ -6926,6 +6928,8 @@ in {

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

stack-data = callPackage ../development/python-modules/stack-data { };

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

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