Merge pull request #39214 from seppeljordan/add-nix-prefetch-github

Add nix-prefetch-github
This commit is contained in:
Jörg Thalheim
2018-05-23 16:33:03 +01:00
committed by GitHub
4 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
{ buildPythonPackage
, fetchPypi
, lib
, six
, attrs
, pytest
, testtools
}:
buildPythonPackage rec {
version = "0.11.0";
pname = "effect";
src = fetchPypi {
inherit pname version;
sha256 = "1q75w4magkqd8ggabhhzzxmxakpdnn0vdg7ygj89zdc9yl7561q6";
};
checkInputs = [
pytest
testtools
];
propagatedBuildInputs = [
six
attrs
];
checkPhase = ''
pytest .
'';
meta = with lib; {
description = "Pure effects for Python";
homepage = https://github.com/python-effect/effect;
license = licenses.mit;
};
}