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

Commits on Jan 17, 2021

  1. Copy the full SHA
    9bf0304 View commit details
  2. Merge pull request #109483 from fabaff/voluptuous-serialize

    python3Packages.voluptuous-serialize: enable tests
    mweinelt authored Jan 17, 2021
    Copy the full SHA
    b6d88a4 View commit details
Showing with 17 additions and 15 deletions.
  1. +17 −15 pkgs/development/python-modules/voluptuous-serialize/default.nix
32 changes: 17 additions & 15 deletions pkgs/development/python-modules/voluptuous-serialize/default.nix
Original file line number Diff line number Diff line change
@@ -1,33 +1,35 @@
{ lib, stdenv, buildPythonPackage, isPy3k, fetchPypi, voluptuous, pytest }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, pytestCheckHook
, voluptuous
}:

buildPythonPackage rec {
pname = "voluptuous-serialize";
version = "2.4.0";

disabled = !isPy3k;

src = fetchPypi {
inherit pname version;
sha256 = "1r7avibzf009h5rlh7mbh1fc01daligvi2axjn5qxh810g5igfn6";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = pname;
rev = version;
sha256 = "1km2y1xaagkdvsy3bmi1sc040x5yyfdw6llmwdv9z8nz67m9v1ya";
};

propagatedBuildInputs = [
voluptuous
];
propagatedBuildInputs = [ voluptuous ];

checkInputs = [
pytest
pytestCheckHook
voluptuous
];

checkPhase = ''
py.test
'';

# no tests in PyPI tarball
doCheck = false;
pythonImportsCheck = [ "voluptuous_serialize" ];

meta = with lib; {
homepage = "https://github.com/balloob/voluptuous-serialize";
homepage = "https://github.com/home-assistant-libs/voluptuous-serialize";
license = licenses.asl20;
description = "Convert Voluptuous schemas to dictionaries so they can be serialized";
maintainers = with maintainers; [ etu ];