summary refs log tree commit diff
path: root/pkgs/development/python-modules/apipkg/default.nix
blob: adefb06303caf296ce221074a9926de25c974f2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, buildPythonPackage, fetchPypi
, pytest }:

buildPythonPackage rec {
  pname = "apipkg";
  version = "1.4";
  name = "${pname}-${version}";

  src = fetchPypi {
    inherit pname version;
    sha256 = "2e38399dbe842891fe85392601aab8f40a8f4cc5a9053c326de35a1cc0297ac6";
  };

  buildInputs = [ pytest ];

  checkPhase = ''
    py.test
  '';

  meta = with stdenv.lib; {
    description = "Namespace control and lazy-import mechanism";
    homepage = http://bitbucket.org/hpk42/apipkg;
    license = licenses.mit;
  };
}