Skip to content

Commit

Permalink
simp_le: 2016-12-16 -> 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
globin committed Feb 20, 2017
1 parent fea71f8 commit 464529c
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions pkgs/tools/admin/simp_le/default.nix
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

2 comments on commit 464529c

@shlevy
Copy link
Member

@shlevy shlevy commented on 464529c Feb 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@globin
Copy link
Member Author

@globin globin commented on 464529c Feb 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 183eeb3

Please sign in to comment.