Merge pull request #98947 from risicle/ris-chameleon-fix

pythonPackages.chameleon: fix tests by switching to github source
This commit is contained in:
Robert Scott 2020-09-27 18:18:27 +01:00 committed by GitHub
commit 46a9046f37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";