nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5}:
6
7buildPythonPackage rec {
8 pname = "pyric";
9 version = "0.1.6.3";
10 format = "setuptools";
11
12 src = fetchPypi {
13 pname = "PyRIC";
14 inherit version;
15 hash = "sha256-tTmwHK/r0kBsAAl/lFJeoPjs0d2S93MfQ+rA7xbCzMk=";
16 };
17
18 postPatch = ''
19 substituteInPlace setup.py \
20 --replace "__version__ = '0.0.3'" "__version__ = '${version}'"
21 '';
22
23 # Tests are outdated
24 doCheck = false;
25
26 pythonImportsCheck = [ "pyric" ];
27
28 meta = {
29 description = "Python Radio Interface Controller";
30 homepage = "https://github.com/wraith-wireless/PyRIC";
31 license = with lib.licenses; [ gpl3Plus ];
32 maintainers = with lib.maintainers; [ fab ];
33 };
34}