simp_le: 2016-12-16 -> 0.1.1

This commit is contained in:
Robin Gloster 2017-02-20 12:47:46 +01:00
parent fea71f84d0
commit 464529c603
No known key found for this signature in database
GPG key ID: 5E4C836C632C2882

View file

@ -1,17 +1,25 @@
{ stdenv, fetchFromGitHub, fetchpatch, pythonPackages }:
pythonPackages.buildPythonApplication rec {
name = "simp_le-2016-12-16";
pname = "simp_le-client";
version = "0.1.1";
name = "${pname}-${version}";
# kuba/simp_le seems unmaintained
src = fetchFromGitHub {
owner = "zenhack";
repo = "simp_le";
rev = "63a43b8547cd9fbc87db6bcd9497c6e37f73abef";
sha256 = "04dr8lvcpi797722lsy06nxhlihrxdqgdy187pg3hl1ki2iq3ixx";
src = pythonPackages.fetchPypi {
inherit pname version;
sha256 = "18y8mg0s0i2bs57pi6mbkwgjlr5mmivchiyvrpcbdmkg9qlbfwaa";
};
propagatedBuildInputs = with pythonPackages; [ acme ];
prePatch = ''
substituteInPlace setup.py \
--replace 'acme>=0.9,<0.10' acme
'';
checkPhase = ''
$out/bin/simp_le --test
'';
propagatedBuildInputs = with pythonPackages; [ acme setuptools_scm ];
meta = with stdenv.lib; {
inherit (src.meta) homepage;