Skip to content

Commit

Permalink
pythonPackages.chameleon: fix tests by switching to github source
Browse files Browse the repository at this point in the history
tests are no longer included in the pypi tarball
  • Loading branch information
risicle committed Sep 27, 2020
1 parent 31a4e2e commit d9cb273
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions pkgs/development/python-modules/chameleon/default.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
}:

buildPythonPackage rec {
pname = "Chameleon";
version = "3.8.1";

src = fetchPypi {
inherit pname version;
sha256 = "adf9609a2fa4ad20deb390605495f9a5d617b737bfbd86e51a49bbac2acaf316";
# tests not included in pypi tarball
src = fetchFromGitHub {
owner = "malthe";
repo = "chameleon";
rev = version;
sha256 = "0nf8x4w2vh1a31wdb86nnvlic9xmr23j3in1f6fq4z6mv2jkwa87";
};

pythonImportsCheck = [ "chameleon" ];

meta = with stdenv.lib; {
homepage = "https://chameleon.readthedocs.io/";
description = "Fast HTML/XML Template Compiler";
Expand Down

0 comments on commit d9cb273

Please sign in to comment.