nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy3k
5, pytestCheckHook
6, python
7}:
8
9buildPythonPackage rec {
10 pname = "frozendict";
11 version = "2.3.1";
12 format = "setuptools";
13
14 disabled = !isPy3k;
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "sha256-vJHGkjPrkWu268QJiLbYSXNXcCQO/JxgvkW0q5GcG94=";
19 };
20
21 pythonImportsCheck = [
22 "frozendict"
23 ];
24
25 checkInputs = [
26 pytestCheckHook
27 ];
28
29 preCheck = ''
30 pushd test
31 '';
32
33 postCheck = ''
34 popd
35 '';
36
37 meta = with lib; {
38 homepage = "https://github.com/slezica/python-frozendict";
39 description = "An immutable dictionary";
40 license = licenses.mit;
41 };
42}